mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 16:21:02 +00:00
ci: build kusama-nightly-staging and trigger deployment (#430)
* trigger pipeline in github-api for polkasync * update polkadot branch name for replacement * deployment: update project
This commit is contained in:
committed by
GitHub
parent
28e23d07ef
commit
524890c335
+27
-4
@@ -89,9 +89,9 @@ test-linux-stable: &test
|
|||||||
TARGET: native
|
TARGET: native
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
test "${CI_COMMIT_TAG}" = "kusama-nightly-staging" && (
|
test "${CI_COMMIT_REF_NAME}" = "kusama-nightly-staging" && (
|
||||||
echo "kusama-nightly-staging: change Cargo.toml to build against substrate:kusama-nightly-staging"
|
echo "kusama-nightly-staging: change Cargo.toml to build against substrate:kusama-nightly-staging"
|
||||||
find . -name Cargo.toml -exec sed -i -r -e ':github.com/paritytech/substrate: { s:branch = "polkadot-master":tag = "kusama-nightly-staging":; s:github.com/paritytech/substrate:gitlab.parity.io/parity/substrate.git:}' '{}' \;
|
find . -name Cargo.toml -exec sed -i -r -e ':github.com/paritytech/substrate": { s:branch = "polkadot-(master|testing)":branch = "kusama-nightly-staging":; s:github.com/paritytech/substrate:gitlab.parity.io/parity/substrate.git:}' '{}' \;
|
||||||
time cargo test --all --release --verbose) || \
|
time cargo test --all --release --verbose) || \
|
||||||
time cargo test --all --release --verbose --locked
|
time cargo test --all --release --verbose --locked
|
||||||
- sccache -s
|
- sccache -s
|
||||||
@@ -107,9 +107,9 @@ build-linux-release: &build
|
|||||||
<<: *compiler_info
|
<<: *compiler_info
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
test "${CI_COMMIT_TAG}" = "kusama-nightly-staging" && (
|
test "${CI_COMMIT_REF_NAME}" = "kusama-nightly-staging" && (
|
||||||
echo "kusama-nightly-staging: change Cargo.toml to build against substrate:kusama-nightly-staging";
|
echo "kusama-nightly-staging: change Cargo.toml to build against substrate:kusama-nightly-staging";
|
||||||
find . -name Cargo.toml -exec sed -i -r -e ':github.com/paritytech/substrate: { s:branch = "polkadot-master":tag = "kusama-nightly-staging":; s:github.com/paritytech/substrate:gitlab.parity.io/parity/substrate.git:}' '{}' \;)
|
find . -name Cargo.toml -exec sed -i -r -e ':github.com/paritytech/substrate": { s:branch = "polkadot-(master|testing)":branch = "kusama-nightly-staging":; s:github.com/paritytech/substrate:gitlab.parity.io/parity/substrate.git:}' '{}' \;
|
||||||
- time cargo build --release --verbose
|
- time cargo build --release --verbose
|
||||||
- mkdir -p ./artifacts
|
- mkdir -p ./artifacts
|
||||||
- mv ./target/release/polkadot ./artifacts/.
|
- mv ./target/release/polkadot ./artifacts/.
|
||||||
@@ -278,4 +278,27 @@ deploy-ue1-tag:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
deploy-polkasync-kusama:
|
||||||
|
stage: deploy
|
||||||
|
cache: {}
|
||||||
|
retry: 1
|
||||||
|
image: parity/tools:latest
|
||||||
|
only:
|
||||||
|
- kusama-nightly-staging
|
||||||
|
tags:
|
||||||
|
- kubernetes-parity-build
|
||||||
|
variables:
|
||||||
|
GITLAB_API: "https://gitlab.parity.io/api/v4"
|
||||||
|
GITHUB_API_PROJECT: "parity%2Finfrastructure%2Fparity-testnet"
|
||||||
|
allow_failure: true
|
||||||
|
script:
|
||||||
|
- |
|
||||||
|
echo "kusama-nightly-staging: triggering roll-out on parity-testnet"
|
||||||
|
curl -sS -X POST \
|
||||||
|
-F "token=${CI_JOB_TOKEN}" \
|
||||||
|
-F "ref=master" \
|
||||||
|
-F "variables[POLKADOT_BUILD_REF]=${CI_COMMIT_REF_NAME}" \
|
||||||
|
${GITLAB_API}/projects/${GITHUB_API_PROJECT}/trigger/pipeline | jq .
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user