refactor(ci): decouple from upstream Parity infrastructure
Replace Parity-specific infrastructure dependencies with Pezkuwi's own: - S3 release uploads → GitHub Releases (gh CLI) - parity-zombienet runner labels → pezkuwi-runner - Grafana/Loki log URLs → disabled (use GH artifacts) - Matrix notifications → disabled (pending Pezkuwi Matrix) - paritytech issue links → pezkuwi tracking issues - paritytech Docker image refs → pezkuwi-sdk-frame in cmd.py - Add mirror-ci-image.yml workflow for GHCR image mirroring - Document upstream shared tools (resolc, try-runtime, evm-test-suite)
This commit is contained in:
@@ -85,6 +85,7 @@ jobs:
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
- name: Download CLI
|
||||
# NOTE: try-runtime-cli is an upstream shared tool from paritytech/try-runtime-cli
|
||||
run: |
|
||||
curl -sL https://github.com/paritytech/try-runtime-cli/releases/download/v0.8.0/try-runtime-x86_64-unknown-linux-musl -o try-runtime
|
||||
chmod +x ./try-runtime
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
# Mirror upstream CI image to GHCR so we control our own build infrastructure.
|
||||
# Runs manually or when .github/env changes (new CI image version).
|
||||
name: Mirror CI Image
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [main]
|
||||
paths: [".github/env"]
|
||||
|
||||
permissions:
|
||||
packages: write
|
||||
|
||||
jobs:
|
||||
mirror:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
- name: Read source image from env file
|
||||
id: source
|
||||
run: |
|
||||
SOURCE_IMAGE=$(grep '^IMAGE=' .github/env | cut -d'"' -f2)
|
||||
TAG=$(echo "$SOURCE_IMAGE" | cut -d: -f2)
|
||||
echo "source=$SOURCE_IMAGE" >> "$GITHUB_OUTPUT"
|
||||
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
|
||||
echo "Source: $SOURCE_IMAGE"
|
||||
|
||||
- name: Log in to GHCR
|
||||
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Pull, tag, and push to GHCR
|
||||
run: |
|
||||
docker pull "${{ steps.source.outputs.source }}"
|
||||
docker tag "${{ steps.source.outputs.source }}" "ghcr.io/pezkuwichain/ci-unified:${{ steps.source.outputs.tag }}"
|
||||
docker push "ghcr.io/pezkuwichain/ci-unified:${{ steps.source.outputs.tag }}"
|
||||
echo "Mirrored to ghcr.io/pezkuwichain/ci-unified:${{ steps.source.outputs.tag }}"
|
||||
@@ -205,6 +205,7 @@ jobs:
|
||||
run: brew install solidity
|
||||
|
||||
- name: Install resolc
|
||||
# NOTE: resolc is an upstream shared tool from paritytech/revive (EVM compiler)
|
||||
run: |
|
||||
VERSION="0.3.0"
|
||||
ASSET_URL="https://github.com/paritytech/revive/releases/download/v$VERSION/resolc-universal-apple-darwin"
|
||||
|
||||
@@ -34,6 +34,7 @@ jobs:
|
||||
- name: Update the Installed Python
|
||||
run: apt-get update && apt-get install -y python3-pip python3
|
||||
- name: Installing the Latest Resolc
|
||||
# NOTE: resolc is an upstream shared tool from paritytech/revive (EVM compiler)
|
||||
run: |
|
||||
VERSION="0.5.0"
|
||||
ASSET_URL="https://github.com/paritytech/revive/releases/download/v$VERSION/resolc-x86_64-unknown-linux-musl"
|
||||
@@ -119,6 +120,7 @@ jobs:
|
||||
cargo build --locked --release -p pez-revive-dev-node --bin pez-revive-dev-node
|
||||
|
||||
- name: Checkout evm-tests
|
||||
# NOTE: evm-test-suite is an upstream shared test suite from paritytech
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
repository: paritytech/evm-test-suite
|
||||
|
||||
@@ -472,6 +472,7 @@ jobs:
|
||||
solc-select use 0.8.30
|
||||
solc --version
|
||||
- name: Install resolc
|
||||
# NOTE: resolc is an upstream shared tool from paritytech/revive (EVM compiler)
|
||||
run: |
|
||||
source $HOME/.cargo/env
|
||||
VERSION="0.5.0"
|
||||
|
||||
Reference in New Issue
Block a user