Skip to content

Commit

Permalink
adjust gh actions to auto pull image
Browse files Browse the repository at this point in the history
  • Loading branch information
GregTCLTK committed Oct 22, 2023
1 parent 4536bd9 commit 42c0466
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,17 @@ jobs:
uses: garygrossgarten/github-action-scp@v0.7.3
with:
local: ./build
remote: /root/memoriter
remote: /root/memoriter/web
host: ${{ secrets.HOST }}
port: ${{ secrets.PORT }}
username: ${{ secrets.USERNAME }}
privateKey: ${{ secrets.KEY }}

- name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: cd memoriter/ && docker compose up -d --pull always memoriter-web

0 comments on commit 42c0466

Please sign in to comment.