From 278b7b908914d85a1b7407af77ec94bb49b8a7d5 Mon Sep 17 00:00:00 2001 From: Rodrigo Delduca Date: Sun, 15 Dec 2024 11:30:52 -0300 Subject: [PATCH] Work in progress --- .github/workflows/deploy.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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..."