summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorSamuel Cabrero <scabrero@suse.de>2019-04-25 13:12:42 +0200
committerAndrew Bartlett <abartlet@samba.org>2019-04-30 23:18:26 +0000
commit4f2af93a7fc736f2ef3dfe0dbc8bf8c3a2eb4161 (patch)
tree0c0b64eb527356054a4ca48c70db12d538fb2c30 /.gitlab-ci.yml
parent4dd8db321f19c06db3f7e4eec43cc44c1cc68716 (diff)
downloadsamba-4f2af93a7fc736f2ef3dfe0dbc8bf8c3a2eb4161.tar.gz
.gitlab-ci.yml: Allow overriding the default image using a variable
This way one can run all tests in a different container without having to modify the gitlab ci file, just setting the SAMBA_CI_CONTAINER_IMAGE variable in the gitlab's GUI. Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml7
1 files changed, 4 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 86fd2fb2778..5401a9e27b9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -20,6 +20,9 @@ variables:
# which is generated by bootstrap/template.py --render
#
SAMBA_CI_CONTAINER_TAG: 4cc4709edd40e4e7c64f9eb255f953eed7924b1f
+ # We use the ubuntu1804 image as default as
+ # it matches what we have on sn-devel-184.
+ SAMBA_CI_CONTAINER_IMAGE: ubuntu1804
#
# The following images are available
# Please see the samba-o3 sections at the end of this file!
@@ -39,9 +42,7 @@ include:
.shared_template:
variables:
AUTOBUILD_JOB_NAME: $CI_JOB_NAME
- # We use the ubuntu1804 image as default as
- # it matches what we have on sn-devel-184.
- image: $SAMBA_CI_CONTAINER_IMAGE_ubuntu1804
+ image: ${SAMBA_CI_CONTAINER_REGISTRY}/samba-ci-${SAMBA_CI_CONTAINER_IMAGE}:${SAMBA_CI_CONTAINER_TAG}
stage: build
tags:
- docker