Update .drone.yml
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-05-21 11:13:45 +00:00
parent ac2a1f0c6e
commit 8dce8108d8

31
.drone.yml Normal file
View File

@@ -0,0 +1,31 @@
kind: pipeline
type: docker
name: default
steps:
- name: build
image: mcr.microsoft.com/dotnet/sdk:8.0
commands:
- dotnet publish -c Release -o out
- 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