fix: reorder Docker commands to ensure proper image pull before container stop and removal
Build and Deploy Docker Container / build-and-deploy (push) Failing after 54s
Test Application / test (push) Successful in 24s

This commit is contained in:
2026-05-09 22:22:46 +02:00
parent 0c6e4c7235
commit d2372a98fa
+1 -1
View File
@@ -37,7 +37,7 @@ jobs:
username: ${{ secrets.SERVER_USER }} username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SERVER_SSH_KEY }} key: ${{ secrets.SERVER_SSH_KEY }}
script: | script: |
docker pull git.allucanget.biz/${{ secrets.REGISTRY_USERNAME }}/thc-webhook:latest
docker stop thc-webhook || true docker stop thc-webhook || true
docker rm thc-webhook || true docker rm thc-webhook || true
docker pull git.allucanget.biz/${{ secrets.REGISTRY_USERNAME }}/thc-webhook:latest
docker run -d --name thc-webhook -e DISCORD_WEBHOOK_URL=${{ secrets.DISCORD_WEBHOOK_URL }} -p 8080:8080 git.allucanget.biz/${{ secrets.REGISTRY_USERNAME }}/thc-webhook:latest docker run -d --name thc-webhook -e DISCORD_WEBHOOK_URL=${{ secrets.DISCORD_WEBHOOK_URL }} -p 8080:8080 git.allucanget.biz/${{ secrets.REGISTRY_USERNAME }}/thc-webhook:latest