registry: Change the way in which images are tagged
authorJordan Petridis <jordan@centricular.com>
Tue, 26 Mar 2019 12:00:31 +0000 (14:00 +0200)
committerJordan Petridis <jordan@centricular.com>
Tue, 26 Mar 2019 15:18:24 +0000 (17:18 +0200)
commit5fe97b9f1c5fb12281be8686579176536568ba0c
tree547caf9385cea4b573d6eee05ddbb17db8f7da88
parentbc2bd98a7540184778de5ac9edf88f6902674664
registry: Change the way in which images are tagged

Previously we tried using the git commit ref as a UID for the
images. This does not work though cause multiple jobs that rebuild
the image can be triggered and override the same image tag. Instead
use the CI_JOB_ID to provide better semantics wrt naming conflicts.

Additionally add the date as part of the tag to better indicate
the age of the image. Gitlab WEBGUI doens't indicate the age
in a good way nor makes it easy to short the images.
.gitlab-ci.yml