mirror of
https://github.com/anchore/syft.git
synced 2026-10-30 22:12:28 +01:00
ignore prerelease verions when uploading version file on release
This commit is contained in:
@@ -211,18 +211,8 @@ release: clean-dist ## Build and publish final binaries and packages
|
||||
# verify checksum signatures
|
||||
.github/scripts/verify-signature.sh "$(DISTDIR)"
|
||||
|
||||
# create a version file for version-update checks
|
||||
echo "$(VERSION)" > $(DISTDIR)/VERSION
|
||||
|
||||
# upload the version file that supports the application version update check
|
||||
@docker run --rm \
|
||||
-i \
|
||||
-e AWS_DEFAULT_REGION=us-west-2 \
|
||||
-e AWS_ACCESS_KEY_ID=${TOOLBOX_AWS_ACCESS_KEY_ID} \
|
||||
-e AWS_SECRET_ACCESS_KEY=${TOOLBOX_AWS_SECRET_ACCESS_KEY} \
|
||||
-v $(shell pwd)/$(DISTDIR)/:/distmount \
|
||||
amazon/aws-cli --debug \
|
||||
s3 cp /distmount/VERSION s3://toolbox-data.anchore.io/$(BIN)/releases/latest/VERSION
|
||||
# upload the version file that supports the application version update check (excluding pre-releases)
|
||||
.github/scripts/update-version-file.sh "$(DISTDIR)" "$(VERSION)"
|
||||
|
||||
.PHONY: clean
|
||||
clean: clean-dist clean-snapshot ## Remove previous builds and result reports
|
||||
|
||||
Reference in New Issue
Block a user