Unverified Commit 9e1277e5 authored by gabriel klawitter's avatar gabriel klawitter Committed by GitHub
Browse files

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
parent c69ba7e2
Pipeline #51577 failed with stages
in 9 minutes and 9 seconds
......@@ -89,10 +89,10 @@ test-linux-stable: &test
TARGET: native
script:
- |
test "${CI_COMMIT_TAG}" = "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:}' '{}' \;
time cargo test --all --release --verbose) || \
test "${CI_COMMIT_REF_NAME}" = "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|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 --locked
- sccache -s
......@@ -107,9 +107,9 @@ build-linux-release: &build
<<: *compiler_info
script:
- |
test "${CI_COMMIT_TAG}" = "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:}' '{}' \;)
test "${CI_COMMIT_REF_NAME}" = "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|testing)":branch = "kusama-nightly-staging":; s:github.com/paritytech/substrate:gitlab.parity.io/parity/substrate.git:}' '{}' \;
- time cargo build --release --verbose
- mkdir -p ./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 .
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment