Skip to content

Commit

Permalink
Update weatheruser.yml
Browse files Browse the repository at this point in the history
HeeSung98 authored Nov 15, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent b1d02ab commit 7e0a5e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/weatheruser.yml
Original file line number Diff line number Diff line change
@@ -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
# 실행중인 컨테이너 중지
# 삭제
# 도커허브에서 이미지 최신버전 가져오기

0 comments on commit 7e0a5e7

Please sign in to comment.