Automatically redeploy website upon pushes to main
Build and publish Docker image / build (push) Successful in 17s Details

This commit is contained in:
TheAssassin 2024-05-19 20:40:20 +02:00
parent b05d1729bc
commit e2e05f24bf
1 changed files with 8 additions and 0 deletions

View File

@ -38,3 +38,11 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
platforms: |
linux/amd64
- name: Trigger redeployment
if: gitea.ref == 'refs/heads/main'
env:
UPDATE_URL: ${{ secrets.UPDATE_URL }}
UPDATE_TOKEN: ${{ secrets.UPDATE_TOKEN }}
run: |
curl "$UPDATE_URL" -H "Authorization: Bearer ${UPDATE_TOKEN}"