Skip to content

Commit c56d18d

Browse files
authored
Ec2 deploy 안정화 (#60)
* feat: 도커 빌드 시점에 환경 변수 주입하도록 수정 및 cd 추가 도커 허브는 제 개인으로 해두겠습니답 * feat: production deploy에서 도커 실행 시 안정화 추가 restart에 대해 always적용
1 parent 48e1d0e commit c56d18d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/production-deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,5 @@ jobs:
4646
fi
4747
4848
# 새 컨테이너 실행
49-
docker run -d --name motimo-fe-production -p 3000:3000 --env-file ./production.env ${{ secrets.DOCKERHUB_USERNAME }}/motimo-fe-production:${{ github.sha }}
49+
docker run -d --name motimo-fe-production -p 3000:3000 --restart always --env-file ./production.env ${{ secrets.DOCKERHUB_USERNAME }}/motimo-fe-production:${{ github.sha }}
50+

0 commit comments

Comments
 (0)