From 3f07cd6493f4e7373f890404ff3b2a8755e2f038 Mon Sep 17 00:00:00 2001 From: Hiep Mai Date: Sat, 7 Sep 2024 07:18:05 +0700 Subject: [PATCH] remove version --- contrib/images/babylond/Dockerfile | 8 -------- 1 file changed, 8 deletions(-) diff --git a/contrib/images/babylond/Dockerfile b/contrib/images/babylond/Dockerfile index aa0f59e3f..c243ae5e4 100644 --- a/contrib/images/babylond/Dockerfile +++ b/contrib/images/babylond/Dockerfile @@ -1,7 +1,5 @@ FROM --platform=$BUILDPLATFORM golang:1.21 AS build-env -# Version to build. Default is empty -ARG VERSION ARG BUILD_TAGS="" ARG LEDGER_ENABLED="false" ARG COSMOS_BUILD_OPTIONS="" @@ -11,12 +9,6 @@ ARG TARGETOS TARGETARCH WORKDIR /go/src/github.com/babylonlabs-io/babylon COPY ./ /go/src/github.com/babylonlabs-io/babylon/ -# Handle if version is set -RUN if [ -n "${VERSION}" ]; then \ - git fetch origin tag ${VERSION} --no-tags; \ - git checkout -f ${VERSION}; \ - fi - # Cache mod dependencies RUN go mod download