oh a string ffs
All checks were successful
Gitea Actions Demo / Create-Stack (push) Successful in 18s

This commit is contained in:
ThaMunsta
2025-03-16 15:01:44 -04:00
parent 26c578b638
commit 18ae6ea41f

View File

@@ -39,15 +39,15 @@ jobs:
# Prepare JSON payload
JSON_PAYLOAD=$(jq -n \
--arg file "$STACK_FILE_CONTENT" \
--arg stackFileContent "$STACK_FILE_CONTENT" \
--arg name "$STACK_NAME" \
'{file: $file, name: $name}')
'{stackFileContent: $stackFileContent, name: $name}')
echo "About to push the following JSON payload:"
echo $JSON_PAYLOAD
# Update stack in Portainer (this redeploys it)
DEPLOY_RESPONSE=$(curl -X POST "$PORTAINER_API_URL/stacks/create/standalone/file?endpointId=$ENDPOINT_ID" \
DEPLOY_RESPONSE=$(curl -X POST "$PORTAINER_API_URL/stacks/create/standalone/string?endpointId=$ENDPOINT_ID" \
-H "X-API-Key: $PORTAINER_TOKEN" \
-H "Content-Type: application/json" \
--data "$JSON_PAYLOAD")