From f2eec08bd446885d1a5e6ee6c19993715e049d56 Mon Sep 17 00:00:00 2001 From: Tudor Date: Tue, 13 Jan 2026 21:16:29 +0000 Subject: [PATCH] Add Portainer webhook trigger to CI workflow Automatically redeploy the stack when new images are pushed to the registry. Co-Authored-By: Claude Opus 4.5 --- .gitea/workflows/build-and-push.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/build-and-push.yml b/.gitea/workflows/build-and-push.yml index c977789..0d1cefc 100644 --- a/.gitea/workflows/build-and-push.yml +++ b/.gitea/workflows/build-and-push.yml @@ -50,3 +50,8 @@ jobs: cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max + - name: Trigger Portainer stack update + if: gitea.event_name != 'pull_request' + run: | + curl -X POST -k "https://10.0.1.224:9443/api/stacks/webhooks/863fc57c-bf24-4c63-9001-bdf9912fba73" +