Fix rules conditions for CI
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
156490af62
commit
b46ff4d458
|
@ -232,9 +232,8 @@ build-and-push-to-latest-docker-tag:
|
||||||
rules: &tag-rules
|
rules: &tag-rules
|
||||||
- if: '$CI_PROJECT_NAMESPACE != "framasoft"'
|
- if: '$CI_PROJECT_NAMESPACE != "framasoft"'
|
||||||
when: never
|
when: never
|
||||||
- if: $CI_COMMIT_TAG
|
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG !~ /alpha|beta|rc/
|
||||||
- if: $CI_COMMIT_TAG =~ /alpha|beta|rc/
|
when: on_success
|
||||||
when: never
|
|
||||||
timeout: 3 hours
|
timeout: 3 hours
|
||||||
script:
|
script:
|
||||||
- >
|
- >
|
||||||
|
@ -250,9 +249,8 @@ build-and-push-docker-tag:
|
||||||
rules: &tag-rules
|
rules: &tag-rules
|
||||||
- if: '$CI_PROJECT_NAMESPACE != "framasoft"'
|
- if: '$CI_PROJECT_NAMESPACE != "framasoft"'
|
||||||
when: never
|
when: never
|
||||||
- if: $CI_COMMIT_TAG
|
|
||||||
- if: $CI_COMMIT_TAG =~ /alpha|beta|rc/
|
- if: $CI_COMMIT_TAG =~ /alpha|beta|rc/
|
||||||
when: always
|
when: on_success
|
||||||
timeout: 3 hours
|
timeout: 3 hours
|
||||||
script:
|
script:
|
||||||
- >
|
- >
|
||||||
|
@ -343,15 +341,11 @@ multi-arch-release:
|
||||||
matrix:
|
matrix:
|
||||||
- ARCH: ["arm", "arm64"]
|
- ARCH: ["arm", "arm64"]
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_PROJECT_NAMESPACE != "framasoft"'
|
|
||||||
when: never
|
|
||||||
- if: '$CI_PIPELINE_SOURCE == "schedule"'
|
|
||||||
- if: $CI_COMMIT_TAG
|
|
||||||
# arm64 is allowed to fail
|
# arm64 is allowed to fail
|
||||||
- if: '$ARCH == "arm64"'
|
- if: '$CI_PROJECT_NAMESPACE == "framasoft" && $CI_PIPELINE_SOURCE == "schedule" && $ARCH == "arm64"'
|
||||||
when: on_success
|
when: on_success
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
- if: '$ARCH'
|
- if: '$CI_PROJECT_NAMESPACE == "framasoft" && $CI_PIPELINE_SOURCE == "schedule" && $ARCH'
|
||||||
when: on_success
|
when: on_success
|
||||||
allow_failure: false
|
allow_failure: false
|
||||||
timeout: 3h
|
timeout: 3h
|
||||||
|
|
Loading…
Reference in a new issue