fix(ci): add docker compose down before up to resolve container name conflict

The VPS has orphan containers from previous deployments that conflict with
new compose up. Running compose down --remove-orphans first cleans them up.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
MythEclipse
2026-06-01 22:19:08 +07:00
co-authored by Claude Opus 4.6
parent 31c4a077d2
commit bf5849f235
+1
View File
@@ -140,5 +140,6 @@ jobs:
echo "$GHCR_TOKEN" | docker login ghcr.io -u "$GHCR_USERNAME" --password-stdin
docker compose pull
docker compose down --remove-orphans || true
docker compose up -d --force-recreate --remove-orphans
docker image prune -f