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

Add a label with the source code's commit version to the image #19

Open
matiasgarciaisaia opened this issue Mar 4, 2024 · 0 comments
Open

Comments

@matiasgarciaisaia
Copy link
Member

Context

When using (mostly in staging) images tagged as latest, it's sometimes not that easy to check which version of the app's source code was used for the build. We usually create a VERSION file with that info (inside the image), but that's manually done outside of ci-docker-builder.

Potential solution 💡

We should add a LABEL to the built Docker image, annotating the source code version of the repo. We may think about adding the repo's URL/name, too.

Alternatives

I guess we should make this optional, thinking about not leaking repo's names or hashes, but I'm not sure about that.

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

1 participant