Merge pull request #2179 from subspace/domain-gemini-3g #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This action enabling building chain spec used in the node build, can be triggered manually or by release creation. | |
# | |
# Regular and raw chain specs are built both for releases and for manually triggered runs, uploaded to artifacts and | |
# assets. | |
name: Chain spec snapshot build | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- 'chain-spec-snapshot-*' | |
- 'chain-spec-gemini-*' | |
jobs: | |
chains-spec: | |
runs-on: ${{ fromJson(github.repository_owner == 'subspace' && '["self-hosted", "ubuntu-20.04-x86-64"]' || 'ubuntu-22.04') }} | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- name: Build node image | |
id: build | |
uses: docker/build-push-action@c56af957549030174b10d6867f20e78cfd7debc5 # @v3.2.0 | |
with: | |
file: Dockerfile-node | |
push: false | |
- name: Generate testnet chain specifications | |
run: | | |
docker run --rm -u root ${{ steps.build.outputs.digest }} build-spec --chain gemini-3g-compiled --disable-default-bootnode > chain-spec-gemini-3g.json | |
docker run --rm -u root ${{ steps.build.outputs.digest }} build-spec --chain gemini-3g-compiled --disable-default-bootnode --raw > chain-spec-raw-gemini-3g.json | |
- name: Upload chain specifications to artifacts | |
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # @v3.1.1 | |
with: | |
name: chain-specifications | |
path: | | |
chain-spec-gemini-3g.json | |
chain-spec-raw-gemini-3g.json | |
if-no-files-found: error | |
- name: Upload chain specifications to assets | |
uses: alexellis/upload-assets@259de5111cb56966d046ced998941e93f91d2c93 # @0.4.0 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
asset_paths: '["chain-spec-gemini-3g.json", "chain-spec-raw-gemini-3g.json"]' |