Skip to content
Snippets Groups Projects
Commit d593d182 authored by Samuel Meenzen's avatar Samuel Meenzen Committed by 🥺
Browse files

feat: run ci on demand to prevent unnecessary job executions

parent f991dd38
No related branches found
No related tags found
No related merge requests found
...@@ -56,6 +56,13 @@ ci: ...@@ -56,6 +56,13 @@ ci:
paths: paths:
- target - target
- .gitlab-ci.d - .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: artifacts:
stage: artifacts stage: artifacts
...@@ -92,6 +99,14 @@ artifacts: ...@@ -92,6 +99,14 @@ artifacts:
- x86_64-unknown-linux-musl.deb - x86_64-unknown-linux-musl.deb
- oci-image-amd64.tar.gz - oci-image-amd64.tar.gz
- oci-image-arm64v8.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: .push-oci-image:
stage: publish stage: publish
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment