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

docker:build should use the project.build.outputTimestamp to set image creation time #1844

Open
jakub-bochenski opened this issue Dec 13, 2024 · 3 comments

Comments

@jakub-bochenski jakub-bochenski changed the title docker:build should use the project.build.outputTimestamp to set image docker:build should use the project.build.outputTimestamp to set image creation time Dec 13, 2024
@jakub-bochenski
Copy link
Contributor Author

TBH I'm not sure if that is possible with docker API :)

@jakub-bochenski
Copy link
Contributor Author

@mfriedenhagen
Copy link

Hi,

what if you use a moving tag as your from image, then it would still get the same date although the underlying image was switched from e.g. Java 17 to 21.
So maybe if both the property is set and the from-image uses a digest would that be a good default? The from image could be set in settings.xml or on the command-line via a property as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants