Compare commits

..

4 Commits

Author SHA1 Message Date
Simon Glass
62d24f048a ci: Fix workflow rules syntax - remove quotes
Remove quotes around CI variable references in workflow rules
to match GitLab documentation syntax.
2025-12-23 16:45:03 -07:00
Simon Glass
0966fce08c test: Verify workflow rules work from master
This should test if MR pipelines are properly controlled by
workflow rules now that they're in the target branch.
2025-12-23 16:43:17 -07:00
Simon Glass
9472979a16 Merge branch 'cia' into 'master'
CI: Tidy up the variables

See merge request u-boot/u-boot!303
2025-12-23 23:41:41 +00:00
Simon Glass
170928aaa1 ci: Add workflow rules to control merge request pipelines
Prevent automatic merge request pipelines unless UTOOL_TRIGGER=1
is set. This allows utool to create controlled pipelines with
specific CI variables while preventing duplicate automatic pipelines.
2025-12-23 16:38:56 -07:00
2 changed files with 14 additions and 0 deletions

View File

@@ -3,6 +3,18 @@
include:
- local: '.gitlab-ci-release.yml'
# Control when pipelines are created
workflow:
rules:
# Allow manual merge request pipelines when MANUAL_TRIGGER is set
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $MANUAL_TRIGGER == "1"
when: always
# Prevent automatic merge request pipelines
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: never
# Allow all other pipeline sources (push, manual, API)
- when: always
variables:
DEFAULT_TAG: ""
MIRROR_DOCKER: docker.io

View File

@@ -1 +1,3 @@
test
test change
test workflow rules