feat: try fix gitlab ci

This commit is contained in:
leon-morival 2025-11-30 17:14:45 +01:00
parent d24242f359
commit 0d1ecacd3f
1 changed files with 2 additions and 1 deletions

View File

@ -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://')