Merge pull request 'Added silent removal of existing containers' (#71) from test into main
Some checks failed
continuous-integration/drone Build is passing
continuous-integration/drone/promote/prod Build is failing

Reviewed-on: #71
This commit was merged in pull request #71.
This commit is contained in:
2026-03-14 10:44:15 +02:00

View File

@@ -107,6 +107,8 @@ steps:
from_secret: ssh_password
script:
- docker pull khwezi/webapitest:latest
- 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
---
@@ -132,6 +134,8 @@ steps:
settings:
script:
- docker pull khwezi/webapitest:latest
- 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=Production -p 4001:8081 khwezi/webapitest:latest
when:
event: