aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.d/containers.yml
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2020-07-01 14:56:49 +0100
committerAlex Bennée <alex.bennee@linaro.org>2020-07-11 15:53:00 +0100
commitf2c5466c78da786dbf6506e3a15b856b7427708e (patch)
treed72b862755567b6422e870c478b1a8aaedc0323b /.gitlab-ci.d/containers.yml
parent3e7b80f84d4584dc3ed6a088cc914f2de6ed0796 (diff)
gitlab: limit re-builds of the containers
Most of the time we are just rebuilding the same things. We can skip this although currently there is no mechanism for picking up new distro releases. Rather than try to be too fine grained allow any change to trigger all the images being rebuilt. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20200701135652.1366-38-alex.bennee@linaro.org>
Diffstat (limited to '.gitlab-ci.d/containers.yml')
-rw-r--r--.gitlab-ci.d/containers.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.gitlab-ci.d/containers.yml b/.gitlab-ci.d/containers.yml
index a7621c4204..ea350eacff 100644
--- a/.gitlab-ci.d/containers.yml
+++ b/.gitlab-ci.d/containers.yml
@@ -17,6 +17,12 @@
- docker push "$TAG"
after_script:
- docker logout
+ rules:
+ - changes:
+ - .gitlab-ci.d/containers.yml
+ - tests/docker/*
+ - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
+ - if: '$CI_COMMIT_REF_NAME == "testing/next"'
amd64-centos7-container:
<<: *container_job_definition