Skip to content

Commit 3b195d7

Browse files
authored
fix(deployment): restart both api and api-local (#61)
1 parent c0d3858 commit 3b195d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/deploy-dev.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ jobs:
103103
echo "Deploying version: $IMG_TAG"
104104
105105
echo "🔄 Pulling new image and restarting app container..."
106-
IMG_TAG=$IMG_TAG docker compose pull api
107-
IMG_TAG=$IMG_TAG docker compose up -d api
106+
IMG_TAG=$IMG_TAG docker compose pull api api-local
107+
IMG_TAG=$IMG_TAG docker compose up -d api api-local
108108
109109
echo "⏳ Waiting for health check..."
110110
sleep 10
@@ -116,7 +116,7 @@ jobs:
116116
else
117117
echo "❌ Health check failed (HTTP $HTTP_CODE)! Rolling back app container..."
118118
if [ "$CURRENT_TAG" != "unknown" ]; then
119-
IMG_TAG=$CURRENT_TAG docker compose up -d api
119+
IMG_TAG=$CURRENT_TAG docker compose up -d api api-local
120120
echo "🔙 Rolled back to $CURRENT_TAG"
121121
fi
122122
exit 1

0 commit comments

Comments
 (0)