mirror of
https://github.com/anchore/syft.git
synced 2026-02-12 10:36:45 +01:00
set version makefile var for updating version file (#808)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
parent
23e1bd3984
commit
8f292958a6
6
Makefile
6
Makefile
@ -6,6 +6,7 @@ COVER_TOTAL = $(RESULTSDIR)/unit-coverage-summary.txt
|
|||||||
LINTCMD = $(TEMPDIR)/golangci-lint run --tests=false --timeout=2m --config .golangci.yaml
|
LINTCMD = $(TEMPDIR)/golangci-lint run --tests=false --timeout=2m --config .golangci.yaml
|
||||||
RELEASE_CMD=$(TEMPDIR)/goreleaser release --rm-dist
|
RELEASE_CMD=$(TEMPDIR)/goreleaser release --rm-dist
|
||||||
SNAPSHOT_CMD=$(RELEASE_CMD) --skip-publish --snapshot
|
SNAPSHOT_CMD=$(RELEASE_CMD) --skip-publish --snapshot
|
||||||
|
VERSION=$(shell git describe --dirty --always --tags)
|
||||||
COMPARE_TEST_IMAGE = centos:8.2.2004
|
COMPARE_TEST_IMAGE = centos:8.2.2004
|
||||||
COMPARE_DIR = ./test/compare
|
COMPARE_DIR = ./test/compare
|
||||||
|
|
||||||
@ -55,6 +56,10 @@ ifndef SNAPSHOTDIR
|
|||||||
$(error SNAPSHOTDIR is not set)
|
$(error SNAPSHOTDIR is not set)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifndef VERSION
|
||||||
|
$(error VERSION is not set)
|
||||||
|
endif
|
||||||
|
|
||||||
ifndef REF_NAME
|
ifndef REF_NAME
|
||||||
REF_NAME = $(VERSION)
|
REF_NAME = $(VERSION)
|
||||||
endif
|
endif
|
||||||
@ -326,6 +331,7 @@ release: clean-dist CHANGELOG.md ## Build and publish final binaries and packag
|
|||||||
|
|
||||||
cat .github/scripts/apple-signing/log/*.txt
|
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)
|
# upload the version file that supports the application version update check (excluding pre-releases)
|
||||||
.github/scripts/update-version-file.sh "$(DISTDIR)" "$(VERSION)"
|
.github/scripts/update-version-file.sh "$(DISTDIR)" "$(VERSION)"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user