diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0c45954..52684bc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -105,11 +105,12 @@ deploy-to-portainer: '{name: $name, stackFileContent: $content, prune: true}') CREATE_RESP=$(curl -s -w "HTTPSTATUS:%{http_code}" \ - -X POST "$PORTAINER_URL/api/stacks?type=2&method=string&endpointId=$PORTAINER_ENDPOINT_ID" \ + -X POST "$PORTAINER_URL/api/stacks/create/standalone/string?endpointId=$PORTAINER_ENDPOINT_ID" \ -H "X-API-Key: $PORTAINER_API_KEY" \ -H "Content-Type: application/json" \ --data "$JSON_PAYLOAD") + CREATE_BODY=$(echo "$CREATE_RESP" | sed -e 's/HTTPSTATUS:.*//g') CREATE_STATUS=$(echo "$CREATE_RESP" | tr -d '\n' | sed -e 's/.*HTTPSTATUS://')