kaniko icon indicating copy to clipboard operation
kaniko copied to clipboard

--digest-file for https put url does not appear to be working

Open noelmcgrath opened this issue 8 months ago • 0 comments

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 $CI_JOB_ID at $(date -u)" > test.txt - 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:

  1. 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

noelmcgrath avatar Apr 25 '25 10:04 noelmcgrath