feat: try fix gitlab ci
This commit is contained in:
parent
d24242f359
commit
0d1ecacd3f
|
|
@ -105,11 +105,12 @@ deploy-to-portainer:
|
||||||
'{name: $name, stackFileContent: $content, prune: true}')
|
'{name: $name, stackFileContent: $content, prune: true}')
|
||||||
|
|
||||||
CREATE_RESP=$(curl -s -w "HTTPSTATUS:%{http_code}" \
|
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 "X-API-Key: $PORTAINER_API_KEY" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
--data "$JSON_PAYLOAD")
|
--data "$JSON_PAYLOAD")
|
||||||
|
|
||||||
|
|
||||||
CREATE_BODY=$(echo "$CREATE_RESP" | sed -e 's/HTTPSTATUS:.*//g')
|
CREATE_BODY=$(echo "$CREATE_RESP" | sed -e 's/HTTPSTATUS:.*//g')
|
||||||
CREATE_STATUS=$(echo "$CREATE_RESP" | tr -d '\n' | sed -e 's/.*HTTPSTATUS://')
|
CREATE_STATUS=$(echo "$CREATE_RESP" | tr -d '\n' | sed -e 's/.*HTTPSTATUS://')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue