From f337b8b5497627cc2dcc2817bc3a752621a3fb7b Mon Sep 17 00:00:00 2001 From: anhductn2001 Date: Thu, 9 Jan 2025 11:01:25 +0700 Subject: [PATCH] Build RollApp with custome Dymint --- .github/workflows/build_image_with_dymint.yml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/build_image_with_dymint.yml diff --git a/.github/workflows/build_image_with_dymint.yml b/.github/workflows/build_image_with_dymint.yml new file mode 100644 index 00000000..cf7653bb --- /dev/null +++ b/.github/workflows/build_image_with_dymint.yml @@ -0,0 +1,40 @@ +name: Build RollApp with Dymint + +on: + workflow_call: # Makes this workflow reusable + inputs: + commit_hash: + description: "Commit hash for updating dymint version" + required: true + type: string + +jobs: + build-wasm-image: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Update dymint module version + run: | + echo "Updating dymint to version ${{ inputs.commit_hash }}" + go mod edit -require github.com/dymensionxyz/dymint@${{ inputs.commit_hash }} + go mod tidy + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build RollApp EVM Image + run: | + docker buildx build \ + --file Dockerfile \ + --target rollapp-evm \ + --platform linux/amd64 \ + --output type=docker,dest=/tmp/rollapp-evm.tar \ + --tag ghcr.io/dymensionxyz/rollapp-evm:e2e . + + - name: Upload EVM artifact + uses: actions/upload-artifact@v3 + with: + name: rollapp-evm + path: /tmp/rollapp-evm.tar \ No newline at end of file