switch version detection to /script/version.sh in artifact release

This commit is contained in:
Umputun
2021-05-04 18:28:49 -05:00
parent 82f8f6c93e
commit d3bd966df8
+1 -1
View File
@@ -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" && \