diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2019-02-07 17:35:13 +0100 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2019-02-07 17:35:13 +0100 |
commit | 9c23076b9e81c36ac2408c491f9b2d546829ee8e (patch) | |
tree | 6c1e6a156275143396fc812db513029d68ff6653 /.gitlab-ci.yml | |
parent | 9045fb310f88780e250e60b80431ca153330e61b (diff) |
gitlab-ci: Only run docker-image stage if relevant source files change
Otherwise there's normally no need to run it. It will also run when a
new branch is created, which ensures that the docker image always exists
(e.g. in a newly forked repository).
Inspired by https://gitlab.freedesktop.org/mesa/mesa/merge_requests/143
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4f63840..cad343b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,6 +24,10 @@ stages: debian-testing: stage: docker-image + only: + changes: + - .gitlab-ci.yml + - .gitlab-ci/Dockerfile image: name: gcr.io/kaniko-project/executor:debug entrypoint: [""] |