Container Registry shows image was published 20 years ago
Summary
I'll go ahead and close this issue. Will add a note to the description to make the above clear. cc @trizzi.
Container Registry shows wrong creation date when created by kaniko --reproducible
Steps to reproduce
-
This pipeline https://gitlab.com/lukaw3d/try-container-registry/-/blob/try3/.gitlab-ci.yml
/kaniko/executor \ --context "${CI_PROJECT_DIR}" \ --dockerfile "${CI_PROJECT_DIR}/example.Dockerfile" \ --destination "registry.gitlab.com/lukaw3d/try-container-registry/example:${CI_COMMIT_SHORT_SHA}" \ --reproducible -
publishes an image to https://gitlab.com/lukaw3d/try-container-registry/container_registry/1667986
-
and it says "Published 20 years ago"
Example Project
https://gitlab.com/lukaw3d/try-container-registry
What is the current bug behavior?
What is the expected correct behavior?
Display correct publish date
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
https://github.com/GoogleContainerTools/kaniko#--reproducible
Possible fixes
Use different source of time if image doesn't contain timestamp.
https://github.com/GoogleContainerTools/kaniko#--reproducible
--reproducible
Set this flag to strip timestamps out of the built image and make it reproducible.
