mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-11-16 17:40:50 +01:00
feat: run ci on demand to prevent unnecessary job executions
This commit is contained in:
parent
20bb214d7e
commit
0d2f1348da
1 changed files with 15 additions and 0 deletions
|
@ -49,6 +49,13 @@ ci:
|
|||
paths:
|
||||
- target
|
||||
- .gitlab-ci.d
|
||||
rules:
|
||||
# CI on upstream runners (only available for maintainers)
|
||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $IS_UPSTREAM_CI == "true"
|
||||
# Manual CI on forks
|
||||
- if: $IS_UPSTREAM_CI != "true"
|
||||
when: manual
|
||||
- if: $CI
|
||||
|
||||
artifacts:
|
||||
stage: artifacts
|
||||
|
@ -85,6 +92,14 @@ artifacts:
|
|||
- x86_64-unknown-linux-musl.deb
|
||||
- oci-image-amd64.tar.gz
|
||||
- oci-image-arm64v8.tar.gz
|
||||
rules:
|
||||
# CI required for all MRs
|
||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||
# Optional CI on forks
|
||||
- if: $IS_UPSTREAM_CI != "true"
|
||||
when: manual
|
||||
allow_failure: true
|
||||
- if: $CI
|
||||
|
||||
.push-oci-image:
|
||||
stage: publish
|
||||
|
|
Loading…
Reference in a new issue