diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 1c5121d..500bd54 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -28,10 +28,6 @@ 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 - - docker system prune --all --force - if docker ps -a --format '{{.Names}}' | grep -Eq '^redis$'; then echo "Removing existing 'redis' container..." docker rm -f redis @@ -39,4 +35,6 @@ jobs: echo "'redis' container does not exist. No action needed." fi + docker system prune --all --force + docker compose --file compose.yaml --file cloudflare.yaml --file logging.yaml up --build --force-recreate --detach