mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-20 10:25:41 +00:00
handle substrate-node-template and substrate-parachain-template (#6541)
This commit is contained in:
@@ -215,24 +215,37 @@ publish-rustdoc:
|
|||||||
after_script:
|
after_script:
|
||||||
- rm -rf .git/ ./*
|
- rm -rf .git/ ./*
|
||||||
|
|
||||||
# Ref: https://github.com/paritytech/opstooling/issues/111
|
.update-substrate-template-repository:
|
||||||
update-node-template:
|
|
||||||
stage: publish
|
stage: publish
|
||||||
extends: .kubernetes-env
|
extends: .kubernetes-env
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
rules:
|
rules:
|
||||||
# The template is only updated for FINAL releases
|
# The template is only updated for FINAL releases
|
||||||
# i.e. the rule should not cover RC or patch releases
|
# i.e. the rule should not cover RC or patch releases
|
||||||
- if: $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+$/ # e.g. v1.0
|
- if: $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+$/ # e.g. v1.0
|
||||||
- if: $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/ # e.g. v1.0.0
|
- if: $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/ # e.g. v1.0.0
|
||||||
script:
|
script:
|
||||||
- git clone --depth=1 --branch="$PIPELINE_SCRIPTS_TAG" https://github.com/paritytech/pipeline-scripts
|
- git clone --depth=1 --branch="$PIPELINE_SCRIPTS_TAG" https://github.com/paritytech/pipeline-scripts
|
||||||
- export POLKADOT_BRANCH="polkadot-v$CI_COMMIT_TAG"
|
- export POLKADOT_BRANCH="polkadot-v$CI_COMMIT_TAG"
|
||||||
- git clone --depth=1 --branch="$POLKADOT_BRANCH" https://github.com/paritytech/substrate
|
- git clone --depth=1 --branch="$POLKADOT_BRANCH" https://github.com/paritytech/substrate
|
||||||
- cd substrate
|
- cd substrate
|
||||||
- ../pipeline-scripts/update_substrate_template.sh
|
- ../pipeline-scripts/update_substrate_template.sh
|
||||||
--repo-name "substrate-node-template"
|
--repo-name "$TARGET_REPOSITORY"
|
||||||
--template-path "bin/node-template"
|
--template-path "$TEMPLATE_PATH"
|
||||||
--github-api-token "$GITHUB_TOKEN"
|
--github-api-token "$GITHUB_TOKEN"
|
||||||
--polkadot-branch "$POLKADOT_BRANCH"
|
--polkadot-branch "$POLKADOT_BRANCH"
|
||||||
|
|
||||||
|
# Ref: https://github.com/paritytech/opstooling/issues/111
|
||||||
|
update-node-template:
|
||||||
|
extends: .update-substrate-template-repository
|
||||||
|
variables:
|
||||||
|
TARGET_REPOSITORY: substrate-node-template
|
||||||
|
TEMPLATE_PATH: bin/node-template
|
||||||
|
|
||||||
|
# Ref: https://github.com/paritytech/opstooling/issues/111
|
||||||
|
update-parachain-template:
|
||||||
|
extends: .update-substrate-template-repository
|
||||||
|
variables:
|
||||||
|
TARGET_REPOSITORY: substrate-parachain-template
|
||||||
|
TEMPLATE_PATH: parachain-template
|
||||||
|
|||||||
Reference in New Issue
Block a user