From b82b31546830e69b3eda83f1810c7908602f64ee Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Sat, 13 Jul 2024 13:50:29 -0400 Subject: [PATCH 1/2] Use watch tower for deploy --- .gitea/workflows/deploy.yaml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 1ebd94d..b489a19 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -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 -- 2.45.2 From 4cf11f665d4645a7e9961d8437303a1b9d5ad61e Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Sat, 13 Jul 2024 13:51:01 -0400 Subject: [PATCH 2/2] Fix push tag --- .gitea/workflows/deploy.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index b489a19..a84fc7f 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -1,7 +1,9 @@ name: Deploy on: - tag: + push: + tags: + - "**" jobs: deploy: -- 2.45.2