oh a string ffs
All checks were successful
Gitea Actions Demo / Create-Stack (push) Successful in 18s
All checks were successful
Gitea Actions Demo / Create-Stack (push) Successful in 18s
This commit is contained in:
@@ -39,15 +39,15 @@ jobs:
|
|||||||
|
|
||||||
# Prepare JSON payload
|
# Prepare JSON payload
|
||||||
JSON_PAYLOAD=$(jq -n \
|
JSON_PAYLOAD=$(jq -n \
|
||||||
--arg file "$STACK_FILE_CONTENT" \
|
--arg stackFileContent "$STACK_FILE_CONTENT" \
|
||||||
--arg name "$STACK_NAME" \
|
--arg name "$STACK_NAME" \
|
||||||
'{file: $file, name: $name}')
|
'{stackFileContent: $stackFileContent, name: $name}')
|
||||||
|
|
||||||
echo "About to push the following JSON payload:"
|
echo "About to push the following JSON payload:"
|
||||||
echo $JSON_PAYLOAD
|
echo $JSON_PAYLOAD
|
||||||
|
|
||||||
# Update stack in Portainer (this redeploys it)
|
# 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 "X-API-Key: $PORTAINER_TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
--data "$JSON_PAYLOAD")
|
--data "$JSON_PAYLOAD")
|
||||||
|
|||||||
Reference in New Issue
Block a user