This commit is contained in:
@@ -45,8 +45,12 @@ jobs:
|
|||||||
echo $JSON_PAYLOAD
|
echo $JSON_PAYLOAD
|
||||||
|
|
||||||
# Update stack in Portainer (this redeploys it)
|
# Update stack in Portainer (this redeploys it)
|
||||||
curl -X PUT "$PORTAINER_API_URL/stacks/$STACK_ID" \
|
DEPLOY_RESPONSE=$(curl -X PUT "$PORTAINER_API_URL/stacks/$STACK_ID" \
|
||||||
-H "X-API-Key: $PORTAINER_TOKEN" \
|
-H "X-API-Key: $PORTAINER_TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
--data "$JSON_PAYLOAD"
|
--data "$JSON_PAYLOAD")
|
||||||
|
|
||||||
|
echo "Redeployed stack in Portainer. Response:"
|
||||||
|
echo $DEPLOY_RESPONSE
|
||||||
|
|
||||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||||
Reference in New Issue
Block a user