Skip to content

Commit

Permalink
set version makefile var for updating version file (#808)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
  • Loading branch information
wagoodman authored Feb 9, 2022
1 parent 23e1bd3 commit 8f29295
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ COVER_TOTAL = $(RESULTSDIR)/unit-coverage-summary.txt
LINTCMD = $(TEMPDIR)/golangci-lint run --tests=false --timeout=2m --config .golangci.yaml
RELEASE_CMD=$(TEMPDIR)/goreleaser release --rm-dist
SNAPSHOT_CMD=$(RELEASE_CMD) --skip-publish --snapshot
VERSION=$(shell git describe --dirty --always --tags)
COMPARE_TEST_IMAGE = centos:8.2.2004
COMPARE_DIR = ./test/compare

Expand Down Expand Up @@ -55,6 +56,10 @@ ifndef SNAPSHOTDIR
$(error SNAPSHOTDIR is not set)
endif

ifndef VERSION
$(error VERSION is not set)
endif

ifndef REF_NAME
REF_NAME = $(VERSION)
endif
Expand Down Expand Up @@ -326,6 +331,7 @@ release: clean-dist CHANGELOG.md ## Build and publish final binaries and packag

cat .github/scripts/apple-signing/log/*.txt

# TODO: turn this into a post-release hook
# upload the version file that supports the application version update check (excluding pre-releases)
.github/scripts/update-version-file.sh "$(DISTDIR)" "$(VERSION)"

Expand Down

0 comments on commit 8f29295

Please sign in to comment.