diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 045c4d2..7d67851 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -28,7 +28,9 @@ jobs: DOCKER_HOST: ssh://root@${{ secrets.HETZNER_IP }} CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }} run: | - docker compose --file compose.yaml --file cloudflare.yaml --file logging.yaml down + set -e + + docker compose --file compose.yaml --file cloudflare.yaml --file logging.yaml down --remove-orphans if docker ps -a --format '{{.Names}}' | grep -Eq '^redis$'; then echo "Removing existing 'redis' container..."