Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
skhaz committed Dec 15, 2024
1 parent 50cddef commit cd912a0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@ 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
else
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

0 comments on commit cd912a0

Please sign in to comment.