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

Encode build information into docker images as labels #10

Open
glance- opened this issue Jan 21, 2020 · 0 comments
Open

Encode build information into docker images as labels #10

glance- opened this issue Jan 21, 2020 · 0 comments

Comments

@glance-
Copy link
Contributor

glance- commented Jan 21, 2020

Our current docker image builder code uses tags to encode which build number, git hash and git branch the image was built from.

The problem with using tags is that when only one tag is pulled, the rest of the information is lost.

I propose that we switch over to using build time labels on the docker image to encode that information instead. Those won't fall of the image as tags might do, and will follow the image, no matter how the image moves around in different systems.

I've started working on adding support for labels in:
jenkinsci/docker-plugin#769

If/when that code is done/merged, it will probably be quite easy to start using it in our build jobs.

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