mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 05:11:02 +00:00
[ci] fix publish-docker-substrate job (#11218)
This commit is contained in:
committed by
GitHub
parent
ca658002a8
commit
8a49af27ad
+18
-30
@@ -41,6 +41,13 @@ variables: &default-vars
|
|||||||
CI_IMAGE: "paritytech/ci-linux:production"
|
CI_IMAGE: "paritytech/ci-linux:production"
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
retry:
|
||||||
|
max: 2
|
||||||
|
when:
|
||||||
|
- runner_system_failure
|
||||||
|
- unknown_failure
|
||||||
|
- api_failure
|
||||||
|
interruptible: true
|
||||||
cache: {}
|
cache: {}
|
||||||
|
|
||||||
.collect-artifacts: &collect-artifacts
|
.collect-artifacts: &collect-artifacts
|
||||||
@@ -60,13 +67,6 @@ default:
|
|||||||
- artifacts/
|
- artifacts/
|
||||||
|
|
||||||
.kubernetes-env: &kubernetes-env
|
.kubernetes-env: &kubernetes-env
|
||||||
retry:
|
|
||||||
max: 2
|
|
||||||
when:
|
|
||||||
- runner_system_failure
|
|
||||||
- unknown_failure
|
|
||||||
- api_failure
|
|
||||||
interruptible: true
|
|
||||||
tags:
|
tags:
|
||||||
- kubernetes-parity-build
|
- kubernetes-parity-build
|
||||||
|
|
||||||
@@ -81,13 +81,6 @@ default:
|
|||||||
image: "${CI_IMAGE}"
|
image: "${CI_IMAGE}"
|
||||||
before_script:
|
before_script:
|
||||||
- *rust-info-script
|
- *rust-info-script
|
||||||
retry:
|
|
||||||
max: 2
|
|
||||||
when:
|
|
||||||
- runner_system_failure
|
|
||||||
- unknown_failure
|
|
||||||
- api_failure
|
|
||||||
interruptible: true
|
|
||||||
tags:
|
tags:
|
||||||
- linux-docker
|
- linux-docker
|
||||||
|
|
||||||
@@ -170,21 +163,6 @@ default:
|
|||||||
| tee ./artifacts/benches/$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA/::trie::read::small.json'
|
| tee ./artifacts/benches/$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA/::trie::read::small.json'
|
||||||
- sccache -s
|
- sccache -s
|
||||||
|
|
||||||
.build-linux-substrate-script: &build-linux-substrate-script
|
|
||||||
- WASM_BUILD_NO_COLOR=1 time cargo build --release --verbose
|
|
||||||
- mv ./target/release/substrate ./artifacts/substrate/.
|
|
||||||
- echo -n "Substrate version = "
|
|
||||||
- if [ "${CI_COMMIT_TAG}" ]; then
|
|
||||||
echo "${CI_COMMIT_TAG}" | tee ./artifacts/substrate/VERSION;
|
|
||||||
else
|
|
||||||
./artifacts/substrate/substrate --version |
|
|
||||||
sed -n -E 's/^substrate ([0-9.]+.*-[0-9a-f]{7,13})-.*$/\1/p' |
|
|
||||||
tee ./artifacts/substrate/VERSION;
|
|
||||||
fi
|
|
||||||
- sha256sum ./artifacts/substrate/substrate | tee ./artifacts/substrate/substrate.sha256
|
|
||||||
- cp -r ./scripts/ci/docker/substrate.Dockerfile ./artifacts/substrate/
|
|
||||||
- sccache -s
|
|
||||||
|
|
||||||
|
|
||||||
#### stage: .pre
|
#### stage: .pre
|
||||||
|
|
||||||
@@ -525,7 +503,17 @@ build-linux-substrate:
|
|||||||
before_script:
|
before_script:
|
||||||
- mkdir -p ./artifacts/substrate/
|
- mkdir -p ./artifacts/substrate/
|
||||||
script:
|
script:
|
||||||
- *build-linux-substrate-script
|
- WASM_BUILD_NO_COLOR=1 time cargo build --release --verbose
|
||||||
|
- mv ./target/release/substrate ./artifacts/substrate/.
|
||||||
|
- echo -n "Substrate version = "
|
||||||
|
- if [ "${CI_COMMIT_TAG}" ]; then
|
||||||
|
echo "${CI_COMMIT_TAG}" | tee ./artifacts/substrate/VERSION;
|
||||||
|
else
|
||||||
|
./artifacts/substrate/substrate --version |
|
||||||
|
cut -d ' ' -f 2 | tee ./artifacts/substrate/VERSION;
|
||||||
|
fi
|
||||||
|
- sha256sum ./artifacts/substrate/substrate | tee ./artifacts/substrate/substrate.sha256
|
||||||
|
- cp -r ./scripts/ci/docker/substrate.Dockerfile ./artifacts/substrate/
|
||||||
- printf '\n# building node-template\n\n'
|
- printf '\n# building node-template\n\n'
|
||||||
- ./scripts/ci/node-template-release.sh ./artifacts/substrate/substrate-node-template.tar.gz
|
- ./scripts/ci/node-template-release.sh ./artifacts/substrate/substrate-node-template.tar.gz
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user