Merge pull request 'Removed dolive stage' (#83) from test into main
All checks were successful
continuous-integration/drone Build is passing

Reviewed-on: #83
This commit was merged in pull request #83.
This commit is contained in:
2026-03-14 11:50:24 +02:00

View File

@@ -110,34 +110,3 @@ steps:
- docker stop webapi 2>NUL || echo "Container not running"
- docker rm webapi 2>NUL || echo "Container not found"
- docker run -d --name webapi --restart unless-stopped -e ASPNETCORE_ENVIRONMENT=Development -p 4000:8081 khwezi/webapitest:latest
---
kind: pipeline
type: docker
name: golive
depends_on:
- deploy
clone:
disable: true
steps:
- name: prod
image: appleboy/drone-ssh
settings:
host:
from_secret: ssh_prod_host
username:
from_secret: ssh_prod_user
password:
from_secret: ssh_prod_password
script:
- docker --config C:/Temp/docker-config pull khwezi/webapitest:latest
- docker --config C:/Temp/docker-config stop webapi 2>$null || true
- docker --config C:/Temp/docker-config rm webapi 2>$null || true
- docker --config C:/Temp/docker-config run -d --name webapi --restart unless-stopped -e ASPNETCORE_ENVIRONMENT=Production -p 4001:8081 khwezi/webapitest:latest
when:
event:
- promote
target:
- prod