mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 17:03:17 +01:00
Merge pull request #108 from anchore/upload-version
Upload version check file on release
This commit is contained in:
commit
50b50a50b2
12
Makefile
12
Makefile
@ -197,7 +197,6 @@ acceptance-test-rpm-package-install: $(SNAPSHOTDIR)
|
|||||||
$(ACC_TEST_IMAGE) \
|
$(ACC_TEST_IMAGE) \
|
||||||
$(RESULTSDIR)
|
$(RESULTSDIR)
|
||||||
|
|
||||||
# TODO: this is not releasing yet
|
|
||||||
.PHONY: release
|
.PHONY: release
|
||||||
release: clean-dist ## Build and publish final binaries and packages
|
release: clean-dist ## Build and publish final binaries and packages
|
||||||
$(call title,Publishing release artifacts)
|
$(call title,Publishing release artifacts)
|
||||||
@ -214,7 +213,16 @@ release: clean-dist ## Build and publish final binaries and packages
|
|||||||
|
|
||||||
# create a version file for version-update checks
|
# create a version file for version-update checks
|
||||||
echo "$(VERSION)" > $(DISTDIR)/VERSION
|
echo "$(VERSION)" > $(DISTDIR)/VERSION
|
||||||
# TODO: add upload to bucket
|
|
||||||
|
# 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)/:/dist \
|
||||||
|
amazon/aws-cli --debug \
|
||||||
|
s3 cp $(DISTDIR)/VERSION s3://anchore-toolbox/$(BIN)/releases/latest/VERSION
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean: clean-dist clean-snapshot ## Remove previous builds and result reports
|
clean: clean-dist clean-snapshot ## Remove previous builds and result reports
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user