From c68f41ef0f4c5d1f7ff9d7f59e4194dbb2769122 Mon Sep 17 00:00:00 2001
From: Arie Peterson <arie@greenhost.nl>
Date: Fri, 2 Aug 2019 16:20:27 +0200
Subject: [PATCH] Use glob patterns in `only` properties of CI jobs

---
 .gitlab-ci.yml | 42 +++++++++++++++++++++---------------------
 1 file changed, 21 insertions(+), 21 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4a3f4ec2e..182ba3499 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -47,9 +47,9 @@ bootstrap:
     when: always
   only:
     changes:
-      - ansible
-      - helmfiles
-      - test
+      - ansible/**/*
+      - helmfiles/**/*
+      - test/**/*
 
 install:
   stage: install-apps
@@ -71,9 +71,9 @@ install:
     expire_in: 1 month
   only:
     changes:
-      - ansible
-      - helmfiles
-      - test
+      - ansible/**/*
+      - helmfiles/**/*
+      - test/**/*
 
 testinfra:
   stage: health-test
@@ -84,9 +84,9 @@ testinfra:
     - py.test -v -m 'testinfra' --connection=ansible --ansible-inventory=./inventory.yml --hosts='ansible://*'
   only:
     changes:
-      - ansible
-      - helmfiles
-      - test
+      - ansible/**/*
+      - helmfiles/**/*
+      - test/**/*
 
 certs:
   stage: health-test
@@ -100,9 +100,9 @@ certs:
     - py.test -s -m 'certs' --connection=ansible --ansible-inventory=./inventory.yml --hosts='ansible://*'
   only:
     changes:
-      - ansible
-      - helmfiles
-      - test
+      - ansible/**/*
+      - helmfiles/**/*
+      - test/**/*
 
 behave-nextcloud:
   stage: integration-test
@@ -121,9 +121,9 @@ behave-nextcloud:
   retry: 2
   only:
     changes:
-      - ansible
-      - helmfiles
-      - test
+      - ansible/**/*
+      - helmfiles/**/*
+      - test/**/*
 
 behave-grafana:
   stage: integration-test
@@ -141,9 +141,9 @@ behave-grafana:
     when: on_failure
   only:
     changes:
-      - ansible
-      - helmfiles
-      - test
+      - ansible/**/*
+      - helmfiles/**/*
+      - test/**/*
 
 terminate:
   stage: cleanup
@@ -155,6 +155,6 @@ terminate:
     - python3 -c "import cosmos; cosmos.terminate_droplets_by_name(\"^ci-\", 2)"
   only:
     changes:
-      - ansible
-      - helmfiles
-      - test
+      - ansible/**/*
+      - helmfiles/**/*
+      - test/**/*
-- 
GitLab