Skip to content

Commit

Permalink
update build-client.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsiungw committed May 13, 2024
1 parent 260bf36 commit 8e77cc9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,13 @@ jobs:
push-to-registry: true

- name: Deploy to EC2
run: |
ls
uses: appleboy/[email protected]
with:
host: ${{ secrets.IP_ADDRESS }}
username: ${{ secrets.USER_NAME }}
password: ${{ secrets.SSH_PRIVATE_KEY }}
script_stop: true
script: |
cd /var/www
cat personal_access_token | docker login ghcr.io -u mhsiungw --password-stdin
sudo docker-compose up --build -d

0 comments on commit 8e77cc9

Please sign in to comment.