feat: pull image gitlab ci/cd
This commit is contained in:
parent
c65bd14fd8
commit
101181893e
|
|
@ -126,7 +126,7 @@ deploy-to-portainer:
|
|||
JSON_PAYLOAD=$(jq -n \
|
||||
--arg id "$STACK_ID" \
|
||||
--rawfile content "$STACK_FILE_PATH" \
|
||||
'{id: ($id|tonumber), stackFileContent: $content, prune: true}')
|
||||
'{id: ($id|tonumber), stackFileContent: $content, prune: true, pullImage: true}')
|
||||
|
||||
UPDATE_RESP=$(curl -s -w "HTTPSTATUS:%{http_code}" \
|
||||
-X PUT "$PORTAINER_URL/api/stacks/$STACK_ID?endpointId=$PORTAINER_ENDPOINT_ID" \
|
||||
|
|
|
|||
Loading…
Reference in New Issue