correct validate-grype-test-target check

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
Alex Goodman 2021-06-01 21:14:29 -04:00
parent 9bf97a9e73
commit 14cceee5e8
No known key found for this signature in database
GPG key ID: 5CB45AE22BAB7EA7

View file

@ -222,7 +222,11 @@ changelog-unreleased: ## show the current changelog that will be produced on the
.PHONY: validate-grype-test-config
validate-grype-test-config:
# ensure the update URL is not overridden (not pointing to staging)
@ grep -q "update-url" test/grype-test-config.yaml && echo "Found 'update-url' in CLI testing config. Cannot release if previous CLI testing did not use production (default) values"
@bash -c '\
grep -q "update-url" test/grype-test-config.yaml; \
if [ $$? -eq 0 ]; then \
echo "Found \"update-url\" in CLI testing config. Cannot release if previous CLI testing did not use production (default) values"; \
fi'
.PHONY: release
release: clean-dist validate-grype-test-config changelog-release ## Build and publish final binaries and packages. Intended to be run only on macOS.