Skip to content

Commit

Permalink
Disable Pangolin
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav committed May 24, 2024
1 parent 95fc5b4 commit be2d1ec
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 59 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
options:
- darwinia
- crab
- pangolin
# - pangolin
tag:
description: "Release tag"
type: string
Expand Down Expand Up @@ -51,27 +51,27 @@ jobs:
--raw-field=network=${{ github.event.inputs.network }} \
--raw-field="version=${{ github.event.inputs.tag }}"
- name: Deploy pangolin nodes
if: ${{ github.event.inputs.network == 'pangolin' }}
run: |
MESSAGE='${{ github.event.head_commit.message }}'
DOCKER_IMAGE_TAG=ghcr.io/darwinia-network/darwinia:${{ github.event.inputs.tag }}
# - name: Deploy pangolin nodes
# if: ${{ github.event.inputs.network == 'pangolin' }}
# run: |
# MESSAGE='${{ github.event.head_commit.message }}'
# DOCKER_IMAGE_TAG=ghcr.io/darwinia-network/darwinia:${{ github.event.inputs.tag }}

jq -n \
--arg file playbooks/pangolin_nodes/host_vars/g1.testnets \
--arg key .substrate_node_runner.node.image \
--arg value ${DOCKER_IMAGE_TAG} \
'{file: $file, key: $key, value: $value}' >> /tmp/changes.json
jq -n \
--arg file playbooks/pangolin_nodes/host_vars/g2.testnets \
--arg key .substrate_node_runner.node.image \
--arg value ${DOCKER_IMAGE_TAG} \
'{file: $file, key: $key, value: $value}' >> /tmp/changes.json
# jq -n \
# --arg file playbooks/pangolin_nodes/host_vars/g1.testnets \
# --arg key .substrate_node_runner.node.image \
# --arg value ${DOCKER_IMAGE_TAG} \
# '{file: $file, key: $key, value: $value}' >> /tmp/changes.json
# jq -n \
# --arg file playbooks/pangolin_nodes/host_vars/g2.testnets \
# --arg key .substrate_node_runner.node.image \
# --arg value ${DOCKER_IMAGE_TAG} \
# '{file: $file, key: $key, value: $value}' >> /tmp/changes.json

MULTI_CHANGES=$(jq -crs '.' < /tmp/changes.json)
GITHUB_TOKEN=${{ secrets.GH_TKN_DARWINIA }} gh workflow run \
trigger.yml \
--ref=main \
--repo=darwinia-network/ansible-playbooks \
--raw-field="changes=${MULTI_CHANGES}" \
--raw-field="message=[darwinia-release]: [deploy-${{ github.event.inputs.network }}] ${MESSAGE}"
# MULTI_CHANGES=$(jq -crs '.' < /tmp/changes.json)
# GITHUB_TOKEN=${{ secrets.GH_TKN_DARWINIA }} gh workflow run \
# trigger.yml \
# --ref=main \
# --repo=darwinia-network/ansible-playbooks \
# --raw-field="changes=${MULTI_CHANGES}" \
# --raw-field="message=[darwinia-release]: [deploy-${{ github.event.inputs.network }}] ${MESSAGE}"
72 changes: 36 additions & 36 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,39 +56,39 @@ jobs:
git pull --rebase origin ${{ matrix.network }}
git push origin ${{ matrix.network }}
testnet:
name: Release WASM testnet
runs-on: ubuntu-latest
if: github.event.inputs.network == 'testnet'
strategy:
matrix:
network: [pangolin]
features: [evm-tracing, force-debug]
steps:
- name: Setup build environment
run: sudo apt update -y && sudo apt install --no-install-recommends -y protobuf-compiler
- name: Install Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install runtime-override ${{ env.RUNTIME_OVERRIDES_VERSION }}
run: |
curl -L ${{ env.RUNTIME_OVERRIDES_LINK }} | tar --zst -xv
sudo mv rtor /usr/bin
sudo chmod u+x /usr/bin/rtor
- name: Fetch latest code
uses: actions/checkout@v3
with:
ref: ${{ matrix.network }}
- name: Run
run: |
curl -o ../wasm.py ${{ env.MATERIAL_LINK }}/wasm.py
python3 ../wasm.py ${{ github.event.inputs.tag }} ${{ matrix.network }} ${{ matrix.features }}
- name: Push
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
git add .
git commit -am "Release \`${{ github.event.inputs.tag }}\`"
git pull --rebase origin ${{ matrix.network }}
git push origin ${{ matrix.network }}
# testnet:
# name: Release WASM testnet
# runs-on: ubuntu-latest
# if: github.event.inputs.network == 'testnet'
# strategy:
# matrix:
# network: [pangolin]
# features: [evm-tracing, force-debug]
# steps:
# - name: Setup build environment
# run: sudo apt update -y && sudo apt install --no-install-recommends -y protobuf-compiler
# - name: Install Python ${{ env.PYTHON_VERSION }}
# uses: actions/setup-python@v4
# with:
# python-version: ${{ env.PYTHON_VERSION }}
# - name: Install runtime-override ${{ env.RUNTIME_OVERRIDES_VERSION }}
# run: |
# curl -L ${{ env.RUNTIME_OVERRIDES_LINK }} | tar --zst -xv
# sudo mv rtor /usr/bin
# sudo chmod u+x /usr/bin/rtor
# - name: Fetch latest code
# uses: actions/checkout@v3
# with:
# ref: ${{ matrix.network }}
# - name: Run
# run: |
# curl -o ../wasm.py ${{ env.MATERIAL_LINK }}/wasm.py
# python3 ../wasm.py ${{ github.event.inputs.tag }} ${{ matrix.network }} ${{ matrix.features }}
# - name: Push
# run: |
# git config --global user.email "[email protected]"
# git config --global user.name "GitHub Action"
# git add .
# git commit -am "Release \`${{ github.event.inputs.tag }}\`"
# git pull --rebase origin ${{ matrix.network }}
# git push origin ${{ matrix.network }}

0 comments on commit be2d1ec

Please sign in to comment.