mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 02:26:16 +00:00
ci: Don't build outside of Monado
This commit is contained in:
parent
9cbc815fbc
commit
b63d3bd6d6
|
@ -12,6 +12,9 @@
|
||||||
# Pre-merge pipeline
|
# Pre-merge pipeline
|
||||||
- if: &is-pre-merge '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
- if: &is-pre-merge '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||||
when: on_success
|
when: on_success
|
||||||
|
# Outside of monado.
|
||||||
|
- if: &is-forked-branch '$CI_PROJECT_NAMESPACE != "monado" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
|
||||||
|
when: manual
|
||||||
|
|
||||||
|
|
||||||
# When to automatically run the CI for build jobs
|
# When to automatically run the CI for build jobs
|
||||||
|
@ -33,6 +36,9 @@
|
||||||
- "scripts/**/*"
|
- "scripts/**/*"
|
||||||
- "src/**/*"
|
- "src/**/*"
|
||||||
when: on_success
|
when: on_success
|
||||||
|
# Don't build on forked repos.
|
||||||
|
- if: *is-forked-branch
|
||||||
|
when: manual
|
||||||
# Otherwise, build/test jobs won't run because no rule matched.
|
# Otherwise, build/test jobs won't run because no rule matched.
|
||||||
|
|
||||||
|
|
||||||
|
@ -57,4 +63,7 @@
|
||||||
#- changes:
|
#- changes:
|
||||||
# *all_paths
|
# *all_paths
|
||||||
# when: manual
|
# when: manual
|
||||||
|
# Don't build on forked repos.
|
||||||
|
- if: *is-forked-branch
|
||||||
|
when: manual
|
||||||
# Otherwise, container jobs won't run because no rule matched.
|
# Otherwise, container jobs won't run because no rule matched.
|
||||||
|
|
Loading…
Reference in a new issue