[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 9/9] gitlab-ci: Use absolute path and simplify firmware jobs
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 9/9] gitlab-ci: Use absolute path and simplify firmware jobs |
Date: |
Tue, 25 May 2021 10:25:56 +0200 |
The GitLab 'add job on file changed' feature doesn't work well
with relative paths: use absolute paths instead.
Change the 'rules:' section by an 'only:' one which is easier
to read.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
.gitlab-ci.d/edk2.yml | 11 +++++------
.gitlab-ci.d/opensbi.yml | 11 +++++------
2 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/.gitlab-ci.d/edk2.yml b/.gitlab-ci.d/edk2.yml
index ba7280605c4..f543a10fbe2 100644
--- a/.gitlab-ci.d/edk2.yml
+++ b/.gitlab-ci.d/edk2.yml
@@ -1,10 +1,9 @@
docker-edk2:
stage: containers
- rules: # Only run this job when the Dockerfile is modified
- - changes:
- - .gitlab-ci.d/edk2.yml
- - .gitlab-ci.d/edk2/Dockerfile
- when: always
+ only: # Only run this job when the Dockerfile is modified
+ changes:
+ - /.gitlab-ci.d/edk2.yml
+ - /.gitlab-ci.d/edk2/Dockerfile
image: docker:19.03.1
services:
- docker:19.03.1-dind
@@ -28,7 +27,7 @@ build-edk2:
needs: ['docker-edk2']
rules: # Only run this job when ...
- changes: # ... roms/edk2/ is modified (submodule updated)
- - roms/edk2/*
+ - /roms/edk2/*
when: always
- if: '$CI_COMMIT_REF_NAME =~ /^edk2/' # or the branch/tag starts with 'edk2'
when: always
diff --git a/.gitlab-ci.d/opensbi.yml b/.gitlab-ci.d/opensbi.yml
index f66cd1d9089..7bc96a29366 100644
--- a/.gitlab-ci.d/opensbi.yml
+++ b/.gitlab-ci.d/opensbi.yml
@@ -1,10 +1,9 @@
docker-opensbi:
stage: containers
- rules: # Only run this job when the Dockerfile is modified
- - changes:
- - .gitlab-ci.d/opensbi.yml
- - .gitlab-ci.d/opensbi/Dockerfile
- when: always
+ only: # Only run this job when the Dockerfile is modified
+ changes:
+ - /.gitlab-ci.d/opensbi.yml
+ - /.gitlab-ci.d/opensbi/Dockerfile
image: docker:19.03.1
services:
- docker:19.03.1-dind
@@ -28,7 +27,7 @@ build-opensbi:
needs: ['docker-opensbi']
rules: # Only run this job when ...
- changes: # ... roms/opensbi/ is modified (submodule updated)
- - roms/opensbi/*
+ - /roms/opensbi/*
when: always
- if: '$CI_COMMIT_REF_NAME =~ /^opensbi/' # or the branch/tag starts with
'opensbi'
when: always
--
2.26.3
[PATCH 7/9] gitlab-ci: Keep Avocado reports during 1 week, Philippe Mathieu-Daudé, 2021/05/25
[PATCH 8/9] gitlab-ci: Run Avocado tests manually (except mainstream CI), Philippe Mathieu-Daudé, 2021/05/25
[PATCH 9/9] gitlab-ci: Use absolute path and simplify firmware jobs,
Philippe Mathieu-Daudé <=
Re: [PATCH 0/9] gitlab-ci: Make mainstream CI green again, Philippe Mathieu-Daudé, 2021/05/27