Skip to content

Commit

Permalink
feat: Add sepolia and mainet builds to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoura committed Aug 31, 2023
1 parent e42a41f commit fe24a64
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/dapp-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
name: "DApp Build"
on:
workflow_call:
inputs:
network:
required: true
type: string
outputs:
dapp-image:
description: "The DApp built container image"
Expand Down Expand Up @@ -37,9 +41,9 @@ jobs:
name=ghcr.io/cartesi/honeypot
name=docker.io/cartesi/honeypot,enable=${{ github.event_name != 'pull_request' }}
tags: |
type=semver,pattern={{version}},suffix=-server
type=ref,event=branch,pattern={{branch}},suffix=-server
type=ref,event=pr,pattern=${{ github.event.number }},suffix=-server
type=semver,pattern={{version}},suffix=-server-${{inputs.network}}
type=ref,event=branch,pattern={{branch}},suffix=-server-${{inputs.network}}
type=ref,event=pr,pattern=${{ github.event.number }},suffix=-server-${{inputs.network}}
flavor: latest=false

- name: Set dapp-image
Expand Down Expand Up @@ -74,3 +78,4 @@ jobs:
set: |
*.cache-from=type=gha
*.cache-to=type=gha,mode=max
*.args.NETWORK=${{inputs.network}}
18 changes: 14 additions & 4 deletions .github/workflows/honeypot-dapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,28 @@ on:
tags:
- v*
branches:
- develop
- adapt-robust-version
- add-sepolia-mainnet-builds
permissions:
contents: read
packages: write
actions: write
jobs:
build:
build-networks:
strategy:
matrix:
network: [localhost, sepolia, mainet]
runs-on: ${{ matrix.network }}
steps:
- uses : ./.github/workflows/dapp-build.yml
with:
network: ${{matrix.network}}
build-localhost:
uses: ./.github/workflows/dapp-build.yml
secrets: inherit
with:
network: localhost
test:
needs: build
needs: build-localhost
runs-on: ubuntu-20.04
steps:
- name: "Checkout"
Expand Down

0 comments on commit fe24a64

Please sign in to comment.