diff --git a/Makefile b/Makefile index fcd572e22..b00b49054 100644 --- a/Makefile +++ b/Makefile @@ -222,7 +222,7 @@ release: clean-dist ## Build and publish final binaries and packages -e AWS_SECRET_ACCESS_KEY=${TOOLBOX_AWS_SECRET_ACCESS_KEY} \ -v $(shell pwd)/$(DISTDIR)/:/distmount \ amazon/aws-cli --debug \ - s3 cp /distmount/VERSION s3://anchore-toolbox/$(BIN)/releases/latest/VERSION + s3 cp /distmount/VERSION s3://toolbox-data.anchore.io/$(BIN)/releases/latest/VERSION .PHONY: clean clean: clean-dist clean-snapshot ## Remove previous builds and result reports diff --git a/internal/constants.go b/internal/constants.go index dbc53e21c..249eaf148 100644 --- a/internal/constants.go +++ b/internal/constants.go @@ -1,4 +1,4 @@ package internal -// note: must be a single word, all lowercase +// note: do not change this const ApplicationName = "syft" diff --git a/internal/version/update.go b/internal/version/update.go index fea56b63e..bdba75f4d 100644 --- a/internal/version/update.go +++ b/internal/version/update.go @@ -7,15 +7,15 @@ import ( "strings" hashiVersion "github.com/anchore/go-version" + "github.com/anchore/syft/internal" ) var latestAppVersionURL = struct { host string path string }{ - // TODO: set me to release host/path before release - host: "https://anchore.io", - path: "/syft/releases/latest/VERSION", + host: "https://toolbox-data.anchore.io", + path: fmt.Sprintf("/%s/releases/latest/VERSION", internal.ApplicationName), } func IsUpdateAvailable() (bool, string, error) {