switch version detection to /script/version.sh in artifact release
This commit is contained in:
@@ -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" && \
|
||||
|
||||
Reference in New Issue
Block a user