chore: rename PORTAINER_WEBHOOK_URL to DOCKER_REDEPLOY_WEBHOOK_URL

More generic name, not tied to Portainer specifically.
Also update dolgolyov-git-release-publisher skill.
This commit is contained in:
2026-03-26 21:45:59 +03:00
parent 9bbe7cb24c
commit 1ed06d54c4
2 changed files with 5 additions and 5 deletions
+5 -5
View File
@@ -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
Binary file not shown.