Skip to content

Commit

Permalink
feat/#28/환경변수명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
gwgw123 committed Dec 4, 2024
1 parent bc59206 commit 5efe60f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ jobs:
# 앱 이미지 이름 업데이트
- name: Update DOCKER_IMAGE in .env file
run: |
if grep -q '^DOCKER_IMAGE=' /home/ubuntu/.env; then
sed -i 's|^DOCKER_IMAGE=.*|DOCKER_IMAGE=${{ env.DOCKER_IMAGE }}|' /home/ubuntu/.env
if grep -q '^IMAGE_NAME=' /home/ubuntu/.env; then
sed -i 's|^IMAGE_NAME=.*|IMAGE_NAME=${{ env.DOCKER_IMAGE }}|' /home/ubuntu/.env
else
echo "DOCKER_IMAGE=${{ env.DOCKER_IMAGE }}" >> /home/ubuntu/.env
echo "IMAGE_NAME=${{ env.DOCKER_IMAGE }}" >> /home/ubuntu/.env
fi
# Docker Compose를 사용한 서비스 배포
Expand Down

0 comments on commit 5efe60f

Please sign in to comment.