[igt-dev] [PATCH i-g-t] gitlab-ci: Build Docker images if Dockerfiles have changed
Arkadiusz Hiler
arkadiusz.hiler at intel.com
Tue Oct 30 11:33:21 UTC 2018
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, we can trigger those jobs conditionally on any alterations to
the Dockerfiles.
Cc: Daniel Vetter <daniel at ffwll.ch>
Cc: Petri Latvala <petri.latvala at intel.com>
Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler at intel.com>
---
.gitlab-ci.yml | 8 ++++++--
1 file 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:
--
2.17.2
More information about the igt-dev
mailing list