fix(ci): force remove stale containers before up to avoid name conflict
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
1a794f35fb
commit
34719d3366
@@ -98,7 +98,9 @@ jobs:
|
|||||||
|
|
||||||
echo "$GHCR_TOKEN" | docker login ghcr.io -u "$GHCR_USERNAME" --password-stdin
|
echo "$GHCR_TOKEN" | docker login ghcr.io -u "$GHCR_USERNAME" --password-stdin
|
||||||
|
|
||||||
|
# Force stop any stale containers from previous deployments
|
||||||
|
docker rm -f imphenbot-proxy imphenbot-backend imphenbot-frontend imphenbot-discord-gateway 2>/dev/null || true
|
||||||
|
|
||||||
docker compose -f infra/docker/docker-compose.yml pull
|
docker compose -f infra/docker/docker-compose.yml pull
|
||||||
docker compose -f infra/docker/docker-compose.yml down --remove-orphans || true
|
|
||||||
docker compose -f infra/docker/docker-compose.yml up -d --remove-orphans
|
docker compose -f infra/docker/docker-compose.yml up -d --remove-orphans
|
||||||
docker image prune -f
|
docker image prune -f
|
||||||
|
|||||||
Reference in New Issue
Block a user