Files
dotnettest/drone.yml
2025-05-21 11:08:30 +00:00

32 lines
818 B
YAML

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