UPDATE DEPLOY STUFF

This commit is contained in:
2026-07-13 21:52:41 -03:00
parent e5af5cb2a3
commit f716feacc5
2 changed files with 10 additions and 10 deletions
+4 -4
View File
@@ -88,16 +88,16 @@ steps:
when:
- status: [failure]
- name: Trigger Portainer stack redeploy
- name: Trigger Dockhand stack redeploy
image: curlimages/curl:latest
environment:
PORTAINER_WEBHOOK_URL:
from_secret: portainer_webhook_url
WEBHOOK_URL:
from_secret: dockhand_webhook_url
commands:
- set -e
- echo "=== Triggering Portainer stack redeploy ==="
- |
resp=$(curl -s -w "\n%{http_code}" -X POST "$PORTAINER_WEBHOOK_URL")
resp=$(curl -s -w "\n%{http_code}" -X POST "$WEBHOOK_URL")
body=$(echo "$resp" | head -n -1)
code=$(echo "$resp" | tail -n 1)
if [ "$code" != "200" ] && [ "$code" != "204" ]; then