kaniko icon indicating copy to clipboard operation
kaniko copied to clipboard

pushes a latest tag to registry

Open chanyshev opened this issue 2 years ago • 2 comments

Hello

Actual behavior When kaniko build the image it's pushes a latest tag to registry. but in my configuration there is not push latest tag.

      --dockerfile "$CI_PROJECT_DIR/Dockerfile"
      --destination "${REGISTRY}/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}:${CI_COMMIT_TAG}"
      --destination "${REGISTRY}/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}:${CI_COMMIT_REF_SLUG}_${CI_COMMIT_SHORT_SHA}"

chanyshev avatar Sep 25 '23 12:09 chanyshev

Thanks for filing the issue @chanyshev . Would you mind adding some more details to the issue i.e. steps to reproduce, the version of kaniko image and the args you used running kaniko 🙏

JeromeJu avatar Sep 26 '23 17:09 JeromeJu

@JeromeJu I see where this is taking place and would be happy to submit a PR for this. Do you have any suggestions on what the community would prefer/handle this instead of:

	DefaultTag = "latest"

My two cents on this would be to keep it as latest as it's a consistent naming convention for a tag. If there is the need to not have latest tag, I wouldn't mind hearing the rationale.

sachasmart avatar Mar 24 '24 23:03 sachasmart