-
Notifications
You must be signed in to change notification settings - Fork 1.5k
--digest-file for https put url does not appear to be working #3458
Description
Actual behavior
Trying to get digest to work using kaniko, running gitlab job on Fargate task(cant use a file)
Kaniko supports this: https URL for any of the digest-file options
I have generated the value with boto s3_client.generate_presigned_url
The curl command i have added to pipeline script works, so no issue with the Presigned URL value or s3 permissions
But when i run pipeline kaniko/executor does push image to destination but there is no update in s3
Any ideas what might me issue?
gitlab build stage:
build_app:
stage: build
variables:
FARGATE_TASK_DEFINITION: $FARGATE_TASK_DEFINITION_BUILD
script:
- echo "Built by GitLab job
- curl -X PUT -T "test.txt" "Presigned URL"
- /kaniko/executor
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/Dockerfile
--destination=$ECR_NONPROD_REPOSITORY
--build-arg CI_JOB_TOKEN=$CI_JOB_TOKEN
--build-arg CI_NUGET_REGISTRY=$CI_NUGET_REGISTRY
--compressed-caching=false
--snapshot-mode=redo
--single-snapshot=true
--image-name-with-digest-file "My Presigned URL"
Expected behavior
s3 object is updated with digest
To Reproduce
Steps to reproduce the behavior:
- Run above pipeline stage in gitlab where runner task is running on fargate. there is a lot in this but i believe the issue is with kaniko executor over where running.
Additional Information