mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-21 16:55:07 -05:00
Merge branch 'feature/ci-main-not-for-mr' into 'main'
Do not run the main CI for MRs See merge request xsf/xeps!26
This commit is contained in:
commit
fd48275bf0
@ -10,6 +10,8 @@ stages:
|
|||||||
- make html inbox-html inbox-xml pdf xeplist refs xml
|
- make html inbox-html inbox-xml pdf xeplist refs xml
|
||||||
- bash tools/ci-prune-build.sh
|
- bash tools/ci-prune-build.sh
|
||||||
rules:
|
rules:
|
||||||
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||||
|
when: never
|
||||||
- if: '$CI_COMMIT_REF_NAME =~ /^main$/'
|
- if: '$CI_COMMIT_REF_NAME =~ /^main$/'
|
||||||
when: always
|
when: always
|
||||||
- when: never
|
- when: never
|
||||||
@ -37,6 +39,8 @@ stages:
|
|||||||
- 'docker push "$IMAGE_REF"'
|
- 'docker push "$IMAGE_REF"'
|
||||||
- 'docker push "$LATEST_REF"'
|
- 'docker push "$LATEST_REF"'
|
||||||
rules:
|
rules:
|
||||||
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||||
|
when: never
|
||||||
- if: '$CI_COMMIT_REF_NAME =~ /^main$/'
|
- if: '$CI_COMMIT_REF_NAME =~ /^main$/'
|
||||||
when: on_success
|
when: on_success
|
||||||
- when: never
|
- when: never
|
||||||
@ -52,6 +56,8 @@ stages:
|
|||||||
- state/
|
- state/
|
||||||
key: attic-state
|
key: attic-state
|
||||||
rules:
|
rules:
|
||||||
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||||
|
when: never
|
||||||
- if: '$CI_COMMIT_REF_NAME =~ /^main$/'
|
- if: '$CI_COMMIT_REF_NAME =~ /^main$/'
|
||||||
when: on_success
|
when: on_success
|
||||||
- when: never
|
- when: never
|
||||||
@ -67,6 +73,8 @@ stages:
|
|||||||
- state/
|
- state/
|
||||||
key: announce-state
|
key: announce-state
|
||||||
rules:
|
rules:
|
||||||
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||||
|
when: never
|
||||||
- if: '$CI_COMMIT_REF_NAME =~ /^main$/'
|
- if: '$CI_COMMIT_REF_NAME =~ /^main$/'
|
||||||
when: on_success
|
when: on_success
|
||||||
- when: never
|
- when: never
|
||||||
|
Loading…
Reference in New Issue
Block a user