diff options
author | Andreas Schneider <asn@samba.org> | 2018-11-20 08:15:02 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-01-26 19:08:12 +0100 |
commit | 8989916b5af6fed9c4c63035d4488583396b8c5a (patch) | |
tree | 6291c0890f42f6116b30e0f7dd88911edb096e24 /.gitlab-ci.yml | |
parent | 80685fd823f3bdb47876e5ec5985420df506ce4e (diff) | |
download | samba-8989916b5af6fed9c4c63035d4488583396b8c5a.tar.gz |
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 <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 4 |
1 files changed, 3 insertions, 1 deletions
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 |