Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

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

@noelmcgrath

Description

@noelmcgrath

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions