From d3bd966df8e2a6eda2343c2adb833ea01a1157f7 Mon Sep 17 00:00:00 2001 From: Umputun Date: Tue, 4 May 2021 18:28:49 -0500 Subject: [PATCH] switch version detection to /script/version.sh in artifact release --- Dockerfile.artifacts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.artifacts b/Dockerfile.artifacts index ab218a36..aec4760b 100644 --- a/Dockerfile.artifacts +++ b/Dockerfile.artifacts @@ -52,7 +52,7 @@ RUN \ # if DRONE presented use DRONE_* git env to make version RUN \ if [ -z "$DRONE" ] ; then \ - echo "runs outside of drone" && version=$(/script/git-rev.sh); \ + echo "runs outside of drone" && version=$("/script/version.sh"); \ else version=${DRONE_TAG}${DRONE_BRANCH}${DRONE_PULL_REQUEST}-${DRONE_COMMIT:0:7}-$(date +%Y%m%d-%H:%M:%S); fi && \ echo "version=$version" && \ export GOFLAGS="-mod=vendor" && \