Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cosign: /usr/bin/cosign: cannot execute: required file not found #3948

Open
Gennady-tech opened this issue Dec 2, 2024 · 0 comments
Open
Labels
question Further information is requested

Comments

@Gennady-tech
Copy link

Gennady-tech commented Dec 2, 2024

I am building kaniko two docker files

time /kaniko/executor \
--context "${CI_PROJECT_DIR}" \
${DOCKER_BUILD_ARGS} \
--dockerfile "${CI_PROJECT_DIR}/Dockerfile-swarm" \
--destination "${IMAGE_UNSTABLE_TAG_VERSION}" \
--destination "${IMAGE_UNSTABLE_TAG_HASH}"
echo "${COSIGN_PK} ${IMAGE_UNSTABLE_TAG_VERSION}"
cosign sign --key ${COSIGN_PK} ${IMAGE_UNSTABLE_TAG_VERSION}
time /kaniko/executor \
--context "${CI_PROJECT_DIR}" \
${DOCKER_BUILD_ARGS} \
--dockerfile "${CI_PROJECT_DIR}/Dockerfile-k8s" \
--destination "${IMAGE_UNSTABLE_K8S_TAG_VERSION}" \
--destination "${IMAGE_UNSTABLE_K8S_TAG_HASH}"

when signing an image I get an error
cosign sign --key ${COSIGN_PK} ${IMAGE_UNSTABLE_K8S_TAG_VERSION}
/bin/bash: line 389: /usr/bin/cosign: cannot execute: required file not found

how to fix please tell me?

I also receive
error pushing image: failed to push to destination: HEAD unexpected status code 412 Precondition Failed (HEAD responses have no body, use GET for details)

@Gennady-tech Gennady-tech added the question Further information is requested label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant