Merge pull request 'Fixed docker commands on prod step' (#70) from test into main
Some checks failed
continuous-integration/drone Build is failing

Reviewed-on: #70
This commit was merged in pull request #70.
This commit is contained in:
2026-03-14 10:38:26 +02:00

View File

@@ -107,8 +107,6 @@ steps:
from_secret: ssh_password
script:
- docker pull khwezi/webapitest:latest
- docker stop webapi || true
- docker rm webapi || true
- docker run -d --name webapi --restart unless-stopped -e ASPNETCORE_ENVIRONMENT=Development -p 4000:8081 khwezi/webapitest:latest
---
@@ -133,8 +131,7 @@ steps:
from_secret: ssh_prod_host
settings:
script:
- docker stop webapi || true
- docker rm webapi || true
- docker pull khwezi/webapitest:latest
- docker run -d --name webapi --restart unless-stopped -e ASPNETCORE_ENVIRONMENT=Production -p 4001:8081 khwezi/webapitest:latest
when:
event: