Use watch tower for deploy
This commit is contained in:
parent
3d04294c09
commit
b82b315468
1 changed files with 3 additions and 7 deletions
|
@ -17,10 +17,6 @@ jobs:
|
|||
docker.atomaka.com/budget:latest
|
||||
docker.atomaka.com/budget:${{gitea.sha}}
|
||||
- name: Deploy to server
|
||||
uses: appleboy/ssh-action@v1.0.3
|
||||
with:
|
||||
host: ${{ secrets.SSH_HOST }}
|
||||
username: ${{ secrets.SSH_USERNAME }}
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
script: |
|
||||
bash "/boot/config/plugins/user.scripts/scripts/deploy budget/script"
|
||||
run: |
|
||||
curl --oauth2-bearer ${{ secrets.WATCHTOWER_TOKEN }} \
|
||||
${{ secrets.WATCHTOWER_HOST }}/v1/update?images=docker.atomaka.com/budget
|
||||
|
|
Loading…
Reference in a new issue