Skip to content

feat(wasm)!: add wasm support (#1884) #1186

feat(wasm)!: add wasm support (#1884)

feat(wasm)!: add wasm support (#1884) #1186

name: Build and push latest docker image
on:
push:
branches:
- main
workflow_dispatch:
inputs:
buildDebug:
description: Whether or build the debug image ("true"/"false")
required: true
default: "false"
wasm:
description: Whether to enable wasm ("true"/"false")
required: true
default: "false"
jobs:
build-and-push-latest-docker-image:
strategy:
matrix:
os:
- ubuntu-20.04
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: nelonoel/[email protected]
- name: fetch tags
run: |
git fetch --unshallow
- name: Build docker image (normal)
env:
WASM: ${{ github.event.inputs.WASM }}
run: |
make WASM="${WASM}" docker-image
- name: Push to ECR (normal)
uses: jwalton/gh-ecr-push@v1
with:
access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
region: us-east-2
local-image: axelar/core
image: axelar-core:${{ github.sha }}
- name: Build docker image (debug)
if: github.event.inputs.buildDebug != 'false'
env:
WASM: ${{ github.event.inputs.WASM }}
run: |
make WASM="${WASM}" docker-image-debug
- name: Push to ECR (debug)
uses: jwalton/gh-ecr-push@v1
if: github.event.inputs.buildDebug != 'false'
with:
access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
region: us-east-2
local-image: axelar/core-debug
image: axelar-core:${{ github.sha }}-debug