1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-16 15:10:12 +00:00

Pass tag to dapper container

Drone does a git clone with `--no-tags` so the normal version script
does not work.
This commit is contained in:
Bill Maxwell
2018-01-05 12:11:18 -07:00
parent 0f79d85f56
commit 7f5cfc8b13
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ if [ -n "$(git status --porcelain --untracked-files=no)" ]; then
fi
COMMIT=$(git rev-parse --short HEAD)
GIT_TAG=$(git tag -l --contains HEAD | head -n 1)
GIT_TAG=${DRONE_TAG:-$(git tag -l --contains HEAD | head -n 1)}
if [[ -z "$DIRTY" && -n "$GIT_TAG" ]]; then
VERSION=$GIT_TAG