Skip to content

Commit

Permalink
build 0.15.2 instead of 0.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnuj committed Oct 13, 2023
1 parent 5748b04 commit 2ef3eeb
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/comdex-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ jobs:
go_version: "1.16"
build_command: "CGO_ENABLED=0 make install"

- version: "0.1.1"
go_version: "1.17"
- version: "0.1.3"
go_version: "1.18"
build_command: "CGO_ENABLED=0 make install"

- version: "5.0.0"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/kava-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ jobs:
os: "linux"
arch: "amd64"

- version: "0.15.0"
go_version: "1.16" # should be 1.13, but 1.16 is the lowest supported by gox
- version: "0.15.2"
go_version: "1.13"
binary: "kavad"

- version: "0.17.1"
Expand Down
16 changes: 8 additions & 8 deletions alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
export COMMIT=GIT_COMMIT="$(git log -1 --format='%h')" && \
export VERSION=GIT_VERSION="$(git describe --tags --dirty --always)" && \
export DENOM=${DENOM:-"u$(echo ${APP_NAME} | head -c 4)"} && \
export GOWORK=off && \
eval ${BUILD_COMMAND}

# verify static binary
RUN set -x && \
file ${GOPATH}/bin/${BIN_NAME} && \
echo "Ensuring binary is statically linked ..." && \
(file ${GOPATH}/bin/${BIN_NAME} | grep "statically linked")
export GOWORK=off
# eval ${BUILD_COMMAND}

# # verify static binary
# RUN set -x && \
# file ${GOPATH}/bin/${BIN_NAME} && \
# echo "Ensuring binary is statically linked ..." && \
# (file ${GOPATH}/bin/${BIN_NAME} | grep "statically linked")

################################################################################
FROM --platform=${BUILDPLATFORM} alpine:latest as prod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ DOCKER_DIR="${BASEDIR}/.."
IMAGE="alpine"
NAME="comdex"
REPO="comdex-official/comdex"
TAG="0.0.4"
TAG="0.1.1"
GO_VERSION="1.16"

cd "${DOCKER_DIR}"
Expand All @@ -18,7 +18,7 @@ docker buildx build "." -f "${IMAGE}.Dockerfile" \
--build-arg "ARCH=amd64" \
--build-arg "APP_NAME=${NAME}" \
--build-arg "BIN_NAME=${NAME}" \
--build-arg "BUILD_COMMAND=CGO_ENABLED=0 make install" \
--build-arg "BUILD_COMMAND=make install" \
--build-arg "BUILD_TAGS=netgo ledger muslc" \
--build-arg "COSMOS_BUILD_OPTIONS=" \
--build-arg "GIT_TAG=v${TAG}" \
Expand Down
5 changes: 3 additions & 2 deletions builds/kava.0.19.0.alpine.sh → builds/kava.0.15.0.alpine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ DOCKER_DIR="${BASEDIR}/.."
IMAGE="alpine"
NAME="kava"
REPO="Kava-Labs/kava"
TAG="0.19.0"
GO_VERSION="1.18"
TAG="0.15.2"
GO_VERSION="1.13"

cd "${DOCKER_DIR}"
docker buildx build "." -f "${IMAGE}.Dockerfile" \
--load \
--progress plain \
--target "builder" \
--tag "terraformlabs/${NAME}:${TAG}" \
--platform "linux/amd64" \
--build-arg "OS=linux" \
Expand Down

0 comments on commit 2ef3eeb

Please sign in to comment.