Initial Blazor Server Drone demo

This commit is contained in:
2025-05-21 13:23:37 +02:00
commit ec13b6de0b
8 changed files with 105 additions and 0 deletions

26
.drone.yml Normal file
View File

@@ -0,0 +1,26 @@
kind: pipeline
type: docker
name: default
steps:
- name: docker-build
image: plugins/docker
settings:
repo: registry.example.com/myblazorapp
tags: latest
dockerfile: Dockerfile
username: your_registry_username
password: your_registry_password
- name: deploy
image: appleboy/drone-ssh
settings:
host: your-server.cz
username: deploy_user
key:
from_secret: ssh_private_key
script:
- docker pull registry.example.com/myblazorapp:latest
- docker stop myblazorapp || true
- docker rm myblazorapp || true
- docker run -d --name myblazorapp -p 8080:80 registry.example.com/myblazorapp:latest