Skip to content

Commit f92abb7

Browse files
committed
ci: try to optimize manual stage checker for gitlab ci
Signed-off-by: Huaqi Fang <578567190@qq.com>
1 parent e832140 commit f92abb7

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.gitlab-ci.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,11 @@ cache:
202202
203203
.job_rules:
204204
interruptible: true
205+
# Rules are evaluated when the pipeline is created, and evaluated in order.
206+
# When a match is found, no more rules are checked
205207
rules:
206-
- changes:
208+
- if: $CI_JOB_STAGE == "manual"
209+
changes:
207210
- conf/**/*
208211
- .github/**/*
209212
- Makefile*
@@ -213,8 +216,17 @@ cache:
213216
- freeloader
214217
- linux
215218
- u-boot
216-
- if: $CI_JOB_STAGE == "manual"
217219
when: manual
220+
- changes:
221+
- conf/**/*
222+
- .github/**/*
223+
- Makefile*
224+
- .gitlab-ci.yml
225+
- buildroot
226+
- opensbi
227+
- freeloader
228+
- linux
229+
- u-boot
218230
tags:
219231
- env::shell
220232
- net::outside

0 commit comments

Comments
 (0)