Skip to content

Commit

Permalink
Merge pull request #37 from Dan-sup/feat/deploy
Browse files Browse the repository at this point in the history
feat: deploy.yml 추가
  • Loading branch information
haen-su authored Jul 12, 2023
2 parents b524810 + 9cec39a commit 7e21a4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@ jobs:
sudo docker push ${{ secrets.DOCKER_REPO }}/dansup-nginx
## Docker Compose Up
- name: executing remote ssh commands using password
- name: Executing Remote Ssh Commands Using Password
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ubuntu
key: ${{ secrets.KEY }}
script: |
cd /home/ubuntu/srv/ubuntu/
sudo docker rm -f $(docker ps -qa)
sudo docker pull ${{ secrets.DOCKER_REPO }}/dansup-web
sudo docker pull ${{ secrets.DOCKER_REPO }}/dansup-nginx
Expand Down

0 comments on commit 7e21a4c

Please sign in to comment.