Skip to content

Commit

Permalink
Merge pull request #11 from Venafi/release
Browse files Browse the repository at this point in the history
fix(release): Adds version variable to Makefile
  • Loading branch information
rvelaVenafi authored Oct 7, 2023
2 parents 51d066f + 20bdc59 commit 672fe5f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ PLUGIN_NAME := terraform-provider-venafi-token
PLUGIN_DIR := pkg/bin
DIST_DIR := pkg/dist

ifdef BUILD_NUMBER
VERSION := $(shell git describe --abbrev=0 --tags)+$(BUILD_NUMBER)
else
VERSION := $(shell git describe --abbrev=0 --tags)
endif

ifdef RELEASE_VERSION
ifneq ($(RELEASE_VERSION), none)
VERSION := ${RELEASE_VERSION}
endif
endif

# release artifacts must not include the 'v' prefix
ZIP_VERSION := $(shell echo ${VERSION} | cut -c 2-)

Expand Down

0 comments on commit 672fe5f

Please sign in to comment.