You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background # While working on my Docker image for webtrees, I ran into a peculiar issue. I had setup automated builds in Docker Hub for every tagged commit in my git repository. At first, I wanted to be able to have multiple tags for each image build, so that each build could be version tagged (like 1.7.15) and have the latest tag applied as well. Using an undocumented feature, I was able to get that to work. However, problems arose once I wanted to also properly label my image. Specifically, I was trying to add the BUILD_DATE and VCS_REF labels. With Docker Hub, this requires you to add your own build hook in order to pass in the needed build arguments. Using an example I found, I added my own build hook to my repository.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
posts/docker-hub-multiple-tags/
Background # While working on my Docker image for webtrees, I ran into a peculiar issue. I had setup automated builds in Docker Hub for every tagged commit in my git repository. At first, I wanted to be able to have multiple tags for each image build, so that each build could be version tagged (like 1.7.15) and have the latest tag applied as well. Using an undocumented feature, I was able to get that to work. However, problems arose once I wanted to also properly label my image. Specifically, I was trying to add the BUILD_DATE and VCS_REF labels. With Docker Hub, this requires you to add your own build hook in order to pass in the needed build arguments. Using an example I found, I added my own build hook to my repository.
https://blog.nathanv.me/posts/docker-hub-multiple-tags/
Beta Was this translation helpful? Give feedback.
All reactions