Skip to content

Commit

Permalink
Merge pull request #71 from cloudskiff/fix_make_build_keep_tag
Browse files Browse the repository at this point in the history
Remove previous tag from version string in make build
  • Loading branch information
sjourdan authored Jan 5, 2021
2 parents 5405385 + ffdd0b5 commit c564ba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ GIT_COMMIT=$(git rev-parse HEAD)
GIT_DIRTY=$(test -n "`git status --porcelain`" && echo "-dev" || true)

# Retrieve
VERSION=$(git describe --tags 2>/dev/null || git rev-parse --short HEAD)
VERSION=$(git name-rev --name-only --tags --no-undefined HEAD 2>/dev/null || git rev-parse --short HEAD)

# Inject version number
LD_FLAGS="-X github.com/cloudskiff/driftctl/pkg/version.version=${VERSION}"
Expand Down

0 comments on commit c564ba0

Please sign in to comment.