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:
@@ -561,12 +561,12 @@ CMD ["uvicorn", "your_package.main:app", "--host", "0.0.0.0", "--port", "8080"]
|
|||||||
if: steps.docker-login.outcome == 'success'
|
if: steps.docker-login.outcome == 'success'
|
||||||
continue-on-error: true # Optional — webhook may not be configured
|
continue-on-error: true # Optional — webhook may not be configured
|
||||||
run: |
|
run: |
|
||||||
if [ -n "${{ secrets.PORTAINER_WEBHOOK_URL }}" ]; then
|
if [ -n "${{ secrets.DOCKER_REDEPLOY_WEBHOOK_URL }}" ]; then
|
||||||
echo "Triggering Portainer redeploy..."
|
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"
|
--max-time 30 || echo "::warning::Portainer webhook failed"
|
||||||
else
|
else
|
||||||
echo "PORTAINER_WEBHOOK_URL not set — skipping auto-deploy"
|
echo "DOCKER_REDEPLOY_WEBHOOK_URL not set — skipping auto-deploy"
|
||||||
fi
|
fi
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -580,7 +580,7 @@ Each stack has its own unique webhook URL generated in the Portainer UI.
|
|||||||
**Setup:**
|
**Setup:**
|
||||||
|
|
||||||
1. In Portainer, open your stack → **Webhooks** → enable and copy the URL
|
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
|
3. The CI step above calls the webhook after `docker push` — Portainer pulls
|
||||||
the new image and recreates the container
|
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 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
|
- 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
|
- 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
|
### Docker Network on TrueNAS
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user