Skip to content

Commit

Permalink
activate main v2 workflow for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
demisx committed Sep 13, 2022
1 parent 2fcb41c commit 2deee0c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: Build Main
jobs:
build_prep:
name: build-prep
runs-on: 'ubuntu-latest'
runs-on: "ubuntu-latest"
outputs:
matrix: ${{ steps.set-build-param.outputs.matrix }}
steps:
Expand All @@ -16,9 +16,9 @@ jobs:
- id: set-build-param
uses: JoshuaTheMiller/conditional-build-matrix@b9af2b1b137d7bd7818c1233ef830b326809a7cc
with:
inputFile: '.github/workflows/build-params.json'
inputFile: ".github/workflows/build-params.json"
# we run build-node on every workflow but build-runtime only on pushes to branches
filter: '[?run_on_event==`any` || run_on_event==`${{ github.event_name }}`]'
filter: "[?run_on_event==`any` || run_on_event==`${{ github.event_name }}`]"
build:
needs: build_prep
strategy:
Expand Down Expand Up @@ -47,8 +47,8 @@ jobs:
- if: matrix.target == 'build-runtime' || matrix.target == 'build-runtime-rococo'
uses: Swatinem/rust-cache@v1
with: # cache the runtime target instead of root target for build-runtime
working-directory: './runtime'
target-dir: './target/frequency'
working-directory: "./runtime"
target-dir: "./target/frequency"
- if: matrix.target == 'build-node'
uses: Swatinem/rust-cache@v1
- name: ${{ matrix.target }}
Expand Down Expand Up @@ -76,7 +76,21 @@ jobs:
date_tag=$(date +'%Y%m%d-%H%M')
echo ${date_tag}
echo "TAG=${date_tag}" >> $GITHUB_ENV
- name: Build and push Frequency image in instant seal mode
- name: Build Frequency related specs and wasm 📝
if: matrix.target == 'build-node'
run: ./scripts/generate_specs.sh 2000 rococo-2000
- name: Build and push Frequency local collator image
if: matrix.target == 'build-node'
id: docker_build_frequency
uses: docker/build-push-action@v3
with:
context: .
push: true
file: docker/collator-node-local.dockerfile
tags: |
frequencychain/frequency:${{ env.TAG }}
frequencychain/frequency:latest
- name: Build and push Frequency local parachain image in instant seal mode
if: matrix.target == 'build-node'
id: docker_build_instant_seal_node
uses: docker/build-push-action@v3
Expand All @@ -87,7 +101,7 @@ jobs:
tags: |
frequencychain/instant-seal-node:${{env.TAG}}
frequencychain/instant-seal-node:latest
- name: Build and push Frequency image for Rococo testnet and Mainnet
- name: Build and push Frequency parachain image for Rococo testnet and Mainnet
if: matrix.target == 'build-node'
id: docker_build_frequency
uses: docker/build-push-action@v3
Expand Down
8 changes: 5 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ services:
collator_frequency:
container_name: frequency
build:
context: .
dockerfile: docker/collator-node-local.dockerfile
image: frequencychain/frequency
# Replace image with build if you want to build locally instead of pulling
# build:
# context: .
# dockerfile: docker/collator-node-local.dockerfile
environment:
- HOST_ALICE=relay_alice
- HOST_BOB=relay_bob
Expand Down

0 comments on commit 2deee0c

Please sign in to comment.