.gitlab-ci.yml: Make docker image name more explicit
authorTim Beale <timbeale@catalyst.net.nz>
Wed, 13 Feb 2019 23:26:26 +0000 (12:26 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 14 Feb 2019 02:51:21 +0000 (03:51 +0100)
The 'image' YAML tag implies a docker image, but for people who find
gitlab mysterious, let's make it blatantly obvious what we're doing
here.

+ added a comment
+ added 'DOCKER' to the variable names
+ removed 'BUILD', as we've now dropped this from all the job-names
+ tried to make the variable names consistent, both within the file and
WRT docker terminology

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Feb 14 03:51:21 CET 2019 on sn-devel-144

.gitlab-ci.yml

index b39f7864257e779f9e73928f6bec56af11ab8dbb..53b2acf121fee8c5ddc48118964c0b0bb57c97f1 100644 (file)
@@ -2,14 +2,16 @@
 
 
 variables:
-  SAMBA_BUILD_GITLAB_CI_REGISTRY: registry.gitlab.com
-  SAMBA_BUILD_IMAGES_PROJECT: samba-team/samba
-  SAMBA_BUILD: latest
+  # we run autobuild.py inside a samba CI docker image located on gitlab's registry
+  SAMBA_CI_DOCKER_REGISTRY: registry.gitlab.com
+  SAMBA_CI_DOCKER_NAME: samba-team/samba
+  SAMBA_CI_DOCKER_TAG: latest
+  SAMBA_CI_DOCKER_IMAGE: $SAMBA_CI_DOCKER_REGISTRY/$SAMBA_CI_DOCKER_NAME:$SAMBA_CI_DOCKER_TAG
   GIT_STRATEGY: fetch
   GIT_DEPTH: "3"
 
 .shared_template:
-  image: $SAMBA_BUILD_GITLAB_CI_REGISTRY/$SAMBA_BUILD_IMAGES_PROJECT:$SAMBA_BUILD
+  image: $SAMBA_CI_DOCKER_IMAGE
   stage: build
   tags:
     - docker