summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorArkadiusz Hiler <arkadiusz.hiler@intel.com>2018-10-30 13:19:46 +0200
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2018-10-30 13:38:30 +0200
commitb517f6533671552166c11748ee48019093ebd069 (patch)
tree80d99224980db3e439e024afc125347fa610b123 /.gitlab-ci.yml
parent1270ec553741ac20c45178d2b26f9a9562ea565f (diff)
gitlab-ci: Build Docker images if Dockerfiles have changed
The jobs that build container images and upload them to the registry do not have to be manual any longer. By leveraging the new only-changes feature (GitLab 11.4), we can trigger those jobs conditionally on any alterations to the Dockerfiles. Cc: Daniel Vetter <daniel@ffwll.ch> Cc: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bd1ddb79..555a05ee 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -94,8 +94,10 @@ pages:
containers:igt-debian:
stage: containers
- when: manual
image: docker:stable
+ only:
+ changes:
+ - Dockerfile.debian
services:
- docker:dind
variables:
@@ -108,8 +110,10 @@ containers:igt-debian:
containers:igt-fedora:
stage: containers
- when: manual
image: docker:stable
+ only:
+ changes:
+ - Dockerfile.fedora
services:
- docker:dind
variables: