From b517f6533671552166c11748ee48019093ebd069 Mon Sep 17 00:00:00 2001 From: Arkadiusz Hiler Date: Tue, 30 Oct 2018 13:19:46 +0200 Subject: 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 Cc: Petri Latvala Signed-off-by: Arkadiusz Hiler Reviewed-by: Daniel Vetter --- .gitlab-ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to '.gitlab-ci.yml') 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: -- cgit v1.2.3