diff --git a/.gitea/workflows/init-stack.yaml b/.gitea/workflows/init-stack.yaml index 5e219a6..67243a5 100644 --- a/.gitea/workflows/init-stack.yaml +++ b/.gitea/workflows/init-stack.yaml @@ -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")