Update deploy pipeline
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
2026-07-13 21:21:17 -03:00
parent e9cf0cd36b
commit 032d638d24
+3 -3
View File
@@ -142,13 +142,13 @@ steps:
- name: 'Trigger Portainer stack redeploy' - name: 'Trigger Portainer stack redeploy'
image: curlimages/curl:latest image: curlimages/curl:latest
environment: environment:
PORTAINER_WEBHOOK_URL: WEBHOOK_URL:
from_secret: portainer_webhook_url from_secret: dockhand_webhook_url
commands: commands:
- set -e - set -e
- echo "=== Triggering Portainer stack redeploy ===" - 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) body=$(echo "$resp" | head -n -1)
code=$(echo "$resp" | tail -n 1) code=$(echo "$resp" | tail -n 1)
if [ "$code" != "200" ] && [ "$code" != "204" ]; then if [ "$code" != "200" ] && [ "$code" != "204" ]; then