Skip to content

Commit

Permalink
Merge pull request #199 from miIlicon/angelSooho-patch-1
Browse files Browse the repository at this point in the history
Update work.yml
  • Loading branch information
gkfktkrh153 authored Sep 12, 2023
2 parents 80bc485 + 111d647 commit d5c2a47
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/work.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,18 @@ jobs:
tags: withfestival:${{ needs.tag.outputs.tag_name }}

deploy:
name: 도커 이미지 실행
name: 원격 서버에 배포
runs-on: ubuntu-latest
needs: docker
steps:
- name: Docker 이미지 실행
run: |
docker run -d --name withfestival-app withfestival:${{ needs.tag.outputs.tag_name }}
- name: 원격 서버에 배포하기
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
docker pull withfestival:${{ needs.tag.outputs.tag_name }}
docker stop withfestival-app || true
docker rm withfestival-app || true
docker run -d --name withfestival-app withfestival:${{ needs.tag.outputs.tag_name }}

0 comments on commit d5c2a47

Please sign in to comment.