From 7e0a5e7d010708fa2d0261017e072f8bf86d07bf Mon Sep 17 00:00:00 2001 From: HeeSung98 <91237087+HeeSung98@users.noreply.github.com> Date: Wed, 15 Nov 2023 09:51:36 +0900 Subject: [PATCH] Update weatheruser.yml --- .github/workflows/weatheruser.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/weatheruser.yml b/.github/workflows/weatheruser.yml index 8126376..aa5973b 100644 --- a/.github/workflows/weatheruser.yml +++ b/.github/workflows/weatheruser.yml @@ -51,10 +51,11 @@ jobs: key : ${{ secrets.EC2_PEMKEY }} #인스턴스 생성 시 발급받은 키페어(아래에 pem파일로 변환하는 방법 링크) port : 22 script : | # 서버 셸스크립트 명령어 실행 + echo "${{ secrets.APPLICATION_YML }}" | base64 --decode > /home/ubuntu/application.yml sudo docker stop $(sudo docker ps -a -q) sudo docker rm $(sudo docker ps -a -q) sudo docker pull heesung98/weatheruser - sudo docker run -d -p 8080:8080 heesung98/weatheruser + sudo docker run -d -p 8080:8080 -v /home/ubuntu/application.yml:/app/config/application.yml heesung98/weatheruser # 실행중인 컨테이너 중지 # 삭제 # 도커허브에서 이미지 최신버전 가져오기