diff --git a/.github/workflows/build_image_with_dymint.yml b/.github/workflows/build_image_with_dymint.yml new file mode 100644 index 0000000..7b77367 --- /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 WASM Image + run: | + docker buildx build \ + --file Dockerfile \ + --target rollapp-wasm \ + --platform linux/amd64 \ + --output type=docker,dest=/tmp/rollapp-wasm.tar \ + --tag ghcr.io/dymensionxyz/rollapp-wasm:e2e . + + - name: Upload WASM artifact + uses: actions/upload-artifact@v3 + with: + name: rollapp-wasm + path: /tmp/rollapp-wasm.tar \ No newline at end of file