-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
๐ [Release] workflow ๋น๋์ ๋ฐฐํฌ job ๋ถ๋ฆฌ (#643)
- Loading branch information
1 parent
bfd056f
commit c986cba
Showing
2 changed files
with
25 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
name: Deploy | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy-to-ec2: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Deploy to Server | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.EC2_HOST }} | ||
username: ${{ secrets.EC2_USER }} | ||
key: ${{ secrets.SERVER_SSH_KEY }} | ||
envs: GITHUB_SHA | ||
script: | | ||
sudo docker-compose -f ~/docker-compose.yml down && \ | ||
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/ghostserver:latest && \ | ||
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/ghostclient:latest && \ | ||
sudo docker-compose -f ~/docker-compose.yml up -d --build | ||
sudo docker image prune -f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters