Skip to content

Commit 936f041

Browse files
authored
Merge pull request #129 from umc-commit/fix/128-cdyml-fix
[FIX] docker 실행코드 수정
2 parents 9ae5a14 + f9204b9 commit 936f041

File tree

5 files changed

+3
-53
lines changed

5 files changed

+3
-53
lines changed

.github/workflows/cd.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,14 @@ jobs:
5252
fi
5353
5454
echo "🚀 Deploying to $TARGET_COLOR container on port $TARGET_PORT..."
55+
docker rm -f node-app-$TARGET_COLOR 2>/dev/null || true
56+
5557
docker run -d \
5658
--name node-app-$TARGET_COLOR \
5759
--env-file /opt/app/.env \
5860
-p $TARGET_PORT:3000 \
5961
--network=commit-networks \
62+
-v /opt/app/config/service-account-key.json:/app/config/service-account-key.json:ro \
6063
${{ secrets.DOCKER_HUB_USERNAME }}/commit-api:latest
6164
6265
echo "⏳ Health check for $TARGET_COLOR..."

docker-compose.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

nginx/default-blue.conf

Lines changed: 0 additions & 17 deletions
This file was deleted.

nginx/default-green.conf

Lines changed: 0 additions & 17 deletions
This file was deleted.

nginx/default.conf

Whitespace-only changes.

0 commit comments

Comments
 (0)