ci(runner): configure Portainer webhook and inject registration token via runner .env
This commit is contained in:
@@ -52,14 +52,10 @@ jobs:
|
||||
docker push "${IMAGE_TAG}"
|
||||
echo "Successfully pushed ${IMAGE_TAG} to Gitea Container Registry!"
|
||||
|
||||
- name: Trigger Portainer redeploy via webhook (if configured)
|
||||
- name: Trigger Portainer redeploy via webhook
|
||||
env:
|
||||
PORTAINER_WEBHOOK: ${{ secrets.PORTAINER_WEBHOOK_RUNNER || '' }}
|
||||
PORTAINER_WEBHOOK: ${{ secrets.PORTAINER_WEBHOOK_RUNNER || 'https://portainer.eibl.tech/api/stacks/webhooks/6e67c0b7-1c5d-4bb2-b8b8-4a6ec66d3b87' }}
|
||||
run: |
|
||||
if [ -n "${PORTAINER_WEBHOOK}" ]; then
|
||||
echo "Notifying Portainer to redeploy the runner stack..."
|
||||
curl -s -X POST "${PORTAINER_WEBHOOK}" || true
|
||||
echo "✓ Portainer webhook triggered"
|
||||
else
|
||||
echo "No Portainer webhook secret provided. Skipping notification."
|
||||
fi
|
||||
echo "Notifying Portainer to redeploy the runner stack..."
|
||||
curl -s -X POST "${PORTAINER_WEBHOOK}" || true
|
||||
echo "✓ Portainer webhook triggered"
|
||||
|
||||
Reference in New Issue
Block a user