feat: pull image gitlab ci/cd

This commit is contained in:
Leon 2025-12-19 11:18:28 +01:00
parent c65bd14fd8
commit 101181893e
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ deploy-to-portainer:
JSON_PAYLOAD=$(jq -n \ JSON_PAYLOAD=$(jq -n \
--arg id "$STACK_ID" \ --arg id "$STACK_ID" \
--rawfile content "$STACK_FILE_PATH" \ --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}" \ UPDATE_RESP=$(curl -s -w "HTTPSTATUS:%{http_code}" \
-X PUT "$PORTAINER_URL/api/stacks/$STACK_ID?endpointId=$PORTAINER_ENDPOINT_ID" \ -X PUT "$PORTAINER_URL/api/stacks/$STACK_ID?endpointId=$PORTAINER_ENDPOINT_ID" \