From 8989916b5af6fed9c4c63035d4488583396b8c5a Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 20 Nov 2018 08:15:02 +0100 Subject: [PATCH] gitlab-ci: Move the image definition to the template And in addition use variables for defining project and build env. Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 04d57cb0491..5379d00750f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,9 @@ # see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options -image: registry.gitlab.com/samba-team/samba:latest variables: + SAMBA_BUILD_IMAGES_PROJECT: samba-team/samba + SAMBA_BUILD: latest GIT_STRATEGY: fetch GIT_DEPTH: "3" @@ -18,6 +19,7 @@ after_script: - tar -xf logs.tar.gz system-info.txt -O .shared_template: &shared_template + image: $CI_REGISTRY/$SAMBA_BUILD_IMAGES_PROJECT:$SAMBA_BUILD stage: build tags: - docker -- 2.34.1