From cb3fb8d443fe05ae5c5798601d350b8df63b617b Mon Sep 17 00:00:00 2001 From: Lukasz Maslanka Date: Mon, 12 Aug 2024 16:36:08 +0200 Subject: [PATCH] juno alpine build --- .github/workflows/juno-build.yml | 2 +- builds/juno.23.1.0.alpine.sh | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100755 builds/juno.23.1.0.alpine.sh diff --git a/.github/workflows/juno-build.yml b/.github/workflows/juno-build.yml index 95b806c..3add3be 100644 --- a/.github/workflows/juno-build.yml +++ b/.github/workflows/juno-build.yml @@ -30,7 +30,7 @@ jobs: matrix: #platform: ["linux/amd64", "linux/arm64"] # need arm runners platform: ["linux/amd64"] - distro: ["alpine", "arch"] + distro: ["alpine"] version: - 23.1.0 diff --git a/builds/juno.23.1.0.alpine.sh b/builds/juno.23.1.0.alpine.sh new file mode 100755 index 0000000..801da61 --- /dev/null +++ b/builds/juno.23.1.0.alpine.sh @@ -0,0 +1,30 @@ +#!/bin/sh -x + +BASEDIR=$(dirname "$0") +DOCKER_DIR="${BASEDIR}/.." +IMAGE="alpine" +NAME="juno" +REPO="CosmosContracts/juno" +TAG="23.1.0" +GO_VERSION="1.22.2" + +cd "${DOCKER_DIR}" +docker buildx build "." -f "${IMAGE}.Dockerfile" \ + --load \ + --progress plain \ + --tag "terraformlabs/${NAME}:${TAG}" \ + --platform "linux/amd64" \ + --build-arg "OS=linux" \ + --build-arg "ARCH=amd64" \ + --build-arg "APP_NAME=${NAME}" \ + --build-arg "BIN_NAME=${NAME}d" \ + --build-arg "DENOM=uatom" \ + --build-arg "BUILD_COMMAND=make install" \ + --build-arg "BUILD_TAGS=netgo ledger muslc" \ + --build-arg "COSMOS_BUILD_OPTIONS=" \ + --build-arg "GIT_TAG=v${TAG}" \ + --build-arg "GIT_REPO=${REPO}" \ + --build-arg "GO_VERSION=${GO_VERSION}" \ + --build-arg "LDFLAGS=-w -s -linkmode=external -extldflags \"-Wl,-z,muldefs -static\"" \ + --build-arg "MIMALLOC_VERSION=" \ + $@