Compare commits

...

2 commits

Author SHA1 Message Date
4cf11f665d
Fix push tag
All checks were successful
Ruby CI / test (pull_request) Successful in 46s
Deploy / deploy (push) Successful in 2m16s
2024-07-13 13:51:01 -04:00
b82b315468
Use watch tower for deploy 2024-07-13 13:50:29 -04:00

View file

@ -1,7 +1,9 @@
name: Deploy
on:
tag:
push:
tags:
- "**"
jobs:
deploy:
@ -17,10 +19,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