Produced docker image name/tag improvements to prevent their cleanup from docker registry
This MR introduces following naming convention for built images:
- every branch can create the image called:
hive/clive/instance-<branch-name>:instance-<branch-name>-commitsha
, for example:registry.gitlab.syncad.com/hive/clive/instance-bw_image_fixes:instance-bw_image_fixes-ae31aa5c
- additionally, for every protected branch or tag, there is created image tag without a commit-sha at the end (here for testing purposes bw_image_fixes branch has been added to protected branches, i.e:
registry.gitlab.syncad.com/hive/clive/instance-bw_image_fixes:instance-bw_image_fixes
- for protected tags, there is built an image tag directly pointing tag name, without
instance-
prefix, i.e.:registry.gitlab.syncad.com/hive/clive/instance-v1.30.0:v1.30.0
. We can consider to change the image name for this case frominstance-v1.30.0
toclive
to finally build qualified name:registry.gitlab.syncad.com/hive/clive/clive:v1.30.0
Related to #83 (closed)
Edited by Bartek Wrona