Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit f00ec46

Browse files
authored
CI: stop publishing to crates.io until unleash is fixed (#9474)
* CI: stop publishing to crates.io until unleash is fixed; allow restarting k8s runners * CI: fix CI if ci-release tag is pushed
1 parent a41578d commit f00ec46

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.gitlab-ci.yml

+13-3
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,15 @@ default:
5555
- artifacts/
5656

5757
.kubernetes-env: &kubernetes-env
58+
retry:
59+
max: 2
60+
when:
61+
- runner_system_failure
62+
- unknown_failure
63+
- api_failure
64+
interruptible: true
5865
tags:
5966
- kubernetes-parity-build
60-
interruptible: true
6167

6268
.rust-info-script: &rust-info-script
6369
- rustup show
@@ -97,6 +103,7 @@ default:
97103
- if: $CI_COMMIT_REF_NAME == "master"
98104
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
99105
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
106+
- if: $CI_COMMIT_REF_NAME =~ /^ci-release-.*$/
100107

101108
.test-refs-no-trigger-prs-only: &test-refs-no-trigger-prs-only
102109
rules:
@@ -343,6 +350,7 @@ unleash-check:
343350
- mkdir -p target/unleash
344351
- export CARGO_TARGET_DIR=target/unleash
345352
- cargo unleash check ${CARGO_UNLEASH_PKG_DEF}
353+
# FIXME: this job must not fail, or unleash-to-crates-io will publish broken stuff
346354
allow_failure: true
347355

348356
test-frame-examples-compile-to-wasm:
@@ -670,12 +678,14 @@ publish-draft-release:
670678
- ./.maintain/gitlab/publish_draft_release.sh
671679
allow_failure: true
672680

673-
publish-to-crates-io:
681+
unleash-to-crates-io:
674682
stage: publish
675683
<<: *docker-env
676684
rules:
677685
- if: $CI_COMMIT_REF_NAME =~ /^ci-release-.*$/
678-
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
686+
# FIXME: wait until https://github.com/paritytech/cargo-unleash/issues/50 is fixed, also
687+
# remove allow_failure: true on the check job
688+
# - if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
679689
script:
680690
- cargo install cargo-unleash ${CARGO_UNLEASH_INSTALL_PARAMS}
681691
- cargo unleash em-dragons --no-check --owner github:paritytech:core-devs ${CARGO_UNLEASH_PKG_DEF}

0 commit comments

Comments
 (0)