Some checks failed
CodeQL / Analyze (push) Waiting to run
Docker Build & Push Simapp (main) / docker-build (push) Waiting to run
golangci-lint / lint (push) Waiting to run
Tests / Code Coverage / build (amd64) (push) Waiting to run
Tests / Code Coverage / build (arm64) (push) Waiting to run
Tests / Code Coverage / unit-tests (map[additional-args:-tags="test_e2e" name:e2e path:./e2e]) (push) Waiting to run
Tests / Code Coverage / unit-tests (map[name:08-wasm path:./modules/light-clients/08-wasm]) (push) Waiting to run
Tests / Code Coverage / unit-tests (map[name:ibc-go path:.]) (push) Waiting to run
Deploy to GitHub Pages / Deploy to GitHub Pages (push) Has been cancelled
Buf-Push / push (push) Has been cancelled
16 lines
597 B
Bash
Executable file
16 lines
597 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eou pipefail
|
|
|
|
# build_wasm_image extracts the correct libwasm version and checksum
|
|
# based on the go.mod and builds a docker image with the provided tag.
|
|
function build_wasm_image() {
|
|
local version="$(scripts/get-libwasm-version.py --get-version)"
|
|
local checksum="$(scripts/get-libwasm-version.py --get-checksum)"
|
|
docker build . -t "${1}" -f modules/light-clients/08-wasm/Dockerfile --build-arg LIBWASM_VERSION=${version} --build-arg LIBWASM_CHECKSUM=${checksum}
|
|
}
|
|
|
|
# default to latest if no tag is specified.
|
|
TAG="${1:-ibc-go-wasm-simd:latest}"
|
|
|
|
build_wasm_image "${TAG}"
|