Skip to content

Commit

Permalink
action ec2 script add
Browse files Browse the repository at this point in the history
  • Loading branch information
papicc45 committed Nov 15, 2023
1 parent 05a1006 commit 2de5f56
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,16 @@ jobs:
with:
context: .
push: true
tags: jerneithe/category_service
tags: jerneithe/category_service

- name: ec2 접속 및 애플리케이션 실행
uses : appleboy/ssh-action@v0.1.6
with :
host : ${{{ secrets.EC2_HOST }}
username : ubuntu
key : ${{ secrets.EC2_PEMKEY }}
port : 22
script : |
sudo docker stop $(sudo docker ps -a -q)
sudo docker rm $(sudo docker ps -a -q)
sudo docker pull jerneithe/comment_service

0 comments on commit 2de5f56

Please sign in to comment.