mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-21 02:45:43 +00:00
Move scripts used in CI to the new location (#1109)
* Move CI scripts to new location * Update references * Update CODEOWNERS file * Update docker/polkadot-collator_builder.Containerfile Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com> Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
6ea78e9cc9
commit
dc10d1520d
@@ -15,7 +15,7 @@ jobs:
|
|||||||
ref: ${{ github.event.pull_request.head.ref }}
|
ref: ${{ github.event.pull_request.head.ref }}
|
||||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||||
- name: Check labels
|
- name: Check labels
|
||||||
run: bash ${{ github.workspace }}/scripts/github/check_labels.sh
|
run: bash ${{ github.workspace }}/scripts/ci/github/check_labels.sh
|
||||||
env:
|
env:
|
||||||
GITHUB_PR: ${{ github.event.pull_request.number }}
|
GITHUB_PR: ${{ github.event.pull_request.number }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ jobs:
|
|||||||
$CMD >> output.txt
|
$CMD >> output.txt
|
||||||
sed -z -i 's/\n\n/\n/g' output.txt
|
sed -z -i 's/\n\n/\n/g' output.txt
|
||||||
cat output.txt | egrep -n -i ''
|
cat output.txt | egrep -n -i ''
|
||||||
SUMMARY=$(./scripts/extrinsic-ordering-filter.sh output.txt)
|
SUMMARY=$(./scripts/ci/extrinsic-ordering-filter.sh output.txt)
|
||||||
echo -e $SUMMARY
|
echo -e $SUMMARY
|
||||||
echo -e $SUMMARY >> output.txt
|
echo -e $SUMMARY >> output.txt
|
||||||
|
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Prepare tooling
|
- name: Prepare tooling
|
||||||
run: |
|
run: |
|
||||||
cd cumulus/scripts/changelog
|
cd cumulus/scripts/ci/changelog
|
||||||
gem install bundler changelogerator:0.9.1
|
gem install bundler changelogerator:0.9.1
|
||||||
bundle install
|
bundle install
|
||||||
changelogerator --help
|
changelogerator --help
|
||||||
@@ -137,7 +137,7 @@ jobs:
|
|||||||
ls -al $CANVAS_KUSAMA_DIGEST
|
ls -al $CANVAS_KUSAMA_DIGEST
|
||||||
|
|
||||||
echo "The diff will be computed from $REF1 to $REF2"
|
echo "The diff will be computed from $REF1 to $REF2"
|
||||||
cd cumulus/scripts/changelog
|
cd cumulus/scripts/ci/changelog
|
||||||
./bin/changelog $REF1 $REF2 release-notes.md
|
./bin/changelog $REF1 $REF2 release-notes.md
|
||||||
ls -al release-notes.md
|
ls -al release-notes.md
|
||||||
ls -al context.json
|
ls -al context.json
|
||||||
@@ -158,7 +158,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
tag_name: parachains-${{ github.ref }}
|
tag_name: parachains-${{ github.ref }}
|
||||||
release_name: Parachains ${{ github.ref }}
|
release_name: Parachains ${{ github.ref }}
|
||||||
body_path: ./cumulus/scripts/changelog/release-notes.md
|
body_path: ./cumulus/scripts/ci/changelog/release-notes.md
|
||||||
draft: true
|
draft: true
|
||||||
|
|
||||||
publish-runtimes:
|
publish-runtimes:
|
||||||
@@ -185,7 +185,7 @@ jobs:
|
|||||||
- name: Get runtime version for ${{ matrix.runtime }}
|
- name: Get runtime version for ${{ matrix.runtime }}
|
||||||
id: get-runtime-ver
|
id: get-runtime-ver
|
||||||
run: |
|
run: |
|
||||||
echo "require './scripts/github/runtime-version.rb'" > script.rb
|
echo "require './scripts/ci/github/runtime-version.rb'" > script.rb
|
||||||
echo "puts get_runtime(runtime: \"${{ matrix.runtime }}\", runtime_dir: \"$RUNTIME_DIR\")" >> script.rb
|
echo "puts get_runtime(runtime: \"${{ matrix.runtime }}\", runtime_dir: \"$RUNTIME_DIR\")" >> script.rb
|
||||||
|
|
||||||
echo "Current folder: $PWD"
|
echo "Current folder: $PWD"
|
||||||
|
|||||||
+1
-5
@@ -19,9 +19,5 @@
|
|||||||
# CI
|
# CI
|
||||||
/.github/ @paritytech/ci @chevdor
|
/.github/ @paritytech/ci @chevdor
|
||||||
/.gitlab-ci.yml @paritytech/ci
|
/.gitlab-ci.yml @paritytech/ci
|
||||||
/scripts/ci/ @paritytech/ci
|
/scripts/ci/ @paritytech/ci @chevdor
|
||||||
/scripts/github/ @paritytech/ci @chevdor
|
|
||||||
/scripts/extrinsic-ordering-filter.sh @paritytech/ci @chevdor
|
|
||||||
|
|
||||||
# CHANGELOG
|
|
||||||
/scripts/changelog/ @chevdor
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# This file is sourced from https://github.com/paritytech/polkadot/blob/master/scripts/dockerfiles/polkadot/polkadot_builder.Dockerfile
|
# This file is sourced from https://github.com/paritytech/polkadot/blob/master/scripts/ci/dockerfiles/polkadot/polkadot_builder.Dockerfile
|
||||||
# This is the build stage for Polkadot-collator. Here we create the binary in a temporary image.
|
# This is the build stage for Polkadot-collator. Here we create the binary in a temporary image.
|
||||||
FROM docker.io/paritytech/ci-linux:production as builder
|
FROM docker.io/paritytech/ci-linux:production as builder
|
||||||
|
|
||||||
@@ -14,7 +14,7 @@ LABEL io.parity.image.type="builder" \
|
|||||||
io.parity.image.authors="devops-team@parity.io" \
|
io.parity.image.authors="devops-team@parity.io" \
|
||||||
io.parity.image.vendor="Parity Technologies" \
|
io.parity.image.vendor="Parity Technologies" \
|
||||||
io.parity.image.description="Multistage Docker image for Polkadot-collator" \
|
io.parity.image.description="Multistage Docker image for Polkadot-collator" \
|
||||||
io.parity.image.source="https://github.com/paritytech/polkadot/blob/${VCS_REF}/docker/test-parachain-collator.dockerfile" \
|
io.parity.image.source="https://github.com/paritytech/polkadot/blob/${VCS_REF}/scripts/ci/dockerfiles/polkadot/polkadot-collator_builder.Dockerfile" \
|
||||||
io.parity.image.documentation="https://github.com/paritytech/cumulus"
|
io.parity.image.documentation="https://github.com/paritytech/cumulus"
|
||||||
|
|
||||||
COPY --from=builder /cumulus/target/release/polkadot-collator /usr/local/bin
|
COPY --from=builder /cumulus/target/release/polkadot-collator /usr/local/bin
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# This file is sourced from https://github.com/paritytech/polkadot/blob/master/scripts/dockerfiles/polkadot/polkadot_builder.Dockerfile
|
# This file is sourced from https://github.com/paritytech/polkadot/blob/master/scripts/ci/dockerfiles/polkadot/polkadot_builder.Dockerfile
|
||||||
FROM docker.io/paritytech/ci-linux:production as builder
|
FROM docker.io/paritytech/ci-linux:production as builder
|
||||||
|
|
||||||
WORKDIR /cumulus
|
WORKDIR /cumulus
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ For now, a bit of preparation is required before you can run the script:
|
|||||||
- store them under the `digests` folder as `<chain>-srtool-digest.json`
|
- store them under the `digests` folder as `<chain>-srtool-digest.json`
|
||||||
- ensure the `.env` file is up to date with correct information
|
- ensure the `.env` file is up to date with correct information
|
||||||
|
|
||||||
The content of the release notes is generated from the template files under the `scripts/changelog/templates` folder. For readability and maintenance, the template is split into several small snippets.
|
The content of the release notes is generated from the template files under the `scripts/ci/changelog/templates` folder. For readability and maintenance, the template is split into several small snippets.
|
||||||
|
|
||||||
Run:
|
Run:
|
||||||
```
|
```
|
||||||
Reference in New Issue
Block a user