-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* MATE-100 : [FIX] 스크립트 수정 -1. 현재 경로가 catchmi-server/catchmi-server로 중복- 이를 해결 * MATE-100 : [FIX] 도커에 환경변수 전달 * MATE-100 : [FIX] develop.yml 수정 - 1. develop 브랜치에 푸시될때 deploy되도록 수정
- Loading branch information
Showing
2 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
name: Deploy To EC2 | ||
on: | ||
push | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
deploy: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
#!/bin/bash | ||
|
||
#!/bin/bash | ||
echo "--------------- 서버 배포 시작 -----------------" | ||
docker stop catchmi-server || true | ||
docker rm catchmi-server || true | ||
docker pull 533267244952.dkr.ecr.ap-northeast-2.amazonaws.com/catchmi-server/catchmi-server:latest | ||
docker run -d --name catchmi-server -p 8080:8080 533267244952.dkr.ecr.ap-northeast-2.amazonaws.com/catchmi-server/catchmi-server:latest | ||
docker pull 533267244952.dkr.ecr.ap-northeast-2.amazonaws.com/catchmi-server:latest | ||
docker run -d --name catchmi-server \ | ||
-p 8080:8080 \ | ||
-e JWT_SECRET_KEY="${JWT_SECRET_KEY}" \ | ||
-e NAVER_CLIENT_ID="${NAVER_CLIENT_ID}" \ | ||
-e NAVER_REDIRECT_URI="${NAVER_REDIRECT_URI}" \ | ||
-e NAVER_CLIENT_SECRET="${NAVER_CLIENT_SECRET}" \ | ||
-e OPENWEATHER_API_KEY="${OPENWEATHER_API_KEY}" \ | ||
533267244952.dkr.ecr.ap-northeast-2.amazonaws.com/catchmi-server:latest | ||
echo "--------------- 서버 배포 끝 -----------------" |