diff --git a/gitea-python-ci-cd.md b/gitea-python-ci-cd.md index 6e2f472..6756b21 100644 --- a/gitea-python-ci-cd.md +++ b/gitea-python-ci-cd.md @@ -561,12 +561,12 @@ CMD ["uvicorn", "your_package.main:app", "--host", "0.0.0.0", "--port", "8080"] if: steps.docker-login.outcome == 'success' continue-on-error: true # Optional — webhook may not be configured run: | - if [ -n "${{ secrets.PORTAINER_WEBHOOK_URL }}" ]; then + if [ -n "${{ secrets.DOCKER_REDEPLOY_WEBHOOK_URL }}" ]; then echo "Triggering Portainer redeploy..." - curl -sf -X POST "${{ secrets.PORTAINER_WEBHOOK_URL }}" \ + curl -sf -X POST "${{ secrets.DOCKER_REDEPLOY_WEBHOOK_URL }}" \ --max-time 30 || echo "::warning::Portainer webhook failed" else - echo "PORTAINER_WEBHOOK_URL not set — skipping auto-deploy" + echo "DOCKER_REDEPLOY_WEBHOOK_URL not set — skipping auto-deploy" fi ``` @@ -580,7 +580,7 @@ Each stack has its own unique webhook URL generated in the Portainer UI. **Setup:** 1. In Portainer, open your stack → **Webhooks** → enable and copy the URL -2. In Gitea, go to repo **Settings → Secrets** → add `PORTAINER_WEBHOOK_URL` +2. In Gitea, go to repo **Settings → Secrets** → add `DOCKER_REDEPLOY_WEBHOOK_URL` 3. The CI step above calls the webhook after `docker push` — Portainer pulls the new image and recreates the container @@ -589,7 +589,7 @@ Each stack has its own unique webhook URL generated in the Portainer UI. - The webhook URL itself acts as authentication — no extra token needed - The step uses `continue-on-error: true` so missing webhooks don't fail the build - Each service/stack gets its own webhook — one secret per repo -- If `PORTAINER_WEBHOOK_URL` is not set, the step is silently skipped +- If `DOCKER_REDEPLOY_WEBHOOK_URL` is not set, the step is silently skipped ### Docker Network on TrueNAS diff --git a/skills/dolgolyov-git-release-publisher.skill b/skills/dolgolyov-git-release-publisher.skill index c13d90e..1d45d25 100644 Binary files a/skills/dolgolyov-git-release-publisher.skill and b/skills/dolgolyov-git-release-publisher.skill differ