Skip to content

Commit 1f20aaf

Browse files
authored
Merge pull request #50 from prgrms-web-devcourse-final-project/chore/33-infra
chore[deploy]: work
2 parents c1263de + 6758364 commit 1f20aaf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/CI-CD_Pipeline.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ jobs:
226226
PROD_REDIS_PASSWORD=${{ secrets.REDIS_PASSWORD }}
227227
EOF
228228

229+
# EC2에서 GHCR 로그인
230+
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u doohyojeong --password-stdin
231+
229232
# 최신 이미지 pull & 컨테이너 실행
230233
docker pull ghcr.io/doohyojeong/${{ env.DOCKER_IMAGE_NAME }}:latest
231234
docker stop app1 2>/dev/null

0 commit comments

Comments
 (0)