Update deploy pipeline
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user