@@ -239,10 +239,10 @@ dist dist/cortex-linux-amd64 dist/cortex-darwin-amd64 dist/query-tee-linux-amd64
239239 GOOS=" darwin" GOARCH=" amd64" CGO_ENABLED=0 go build $(GO_FLAGS ) -o ./dist/cortex-darwin-amd64 ./cmd/cortex
240240 GOOS=" linux" GOARCH=" amd64" CGO_ENABLED=0 go build $(GO_FLAGS ) -o ./dist/query-tee-linux-amd64 ./cmd/query-tee
241241 GOOS=" darwin" GOARCH=" amd64" CGO_ENABLED=0 go build $(GO_FLAGS ) -o ./dist/query-tee-darwin-amd64 ./cmd/query-tee
242- shasum -a 256 ./dist/cortex-darwin-amd64 | cut -d ' ' -f 1 > ./dist/cortex-darwin-amd64-sha-256
243- shasum -a 256 ./dist/cortex-linux-amd64 | cut -d ' ' -f 1 > ./dist/cortex-linux-amd64-sha-256
244- shasum -a 256 ./dist/query-tee-darwin-amd64 | cut -d ' ' -f 1 > ./dist/query-tee-darwin-amd64-sha-256
245- shasum -a 256 ./dist/query-tee-linux-amd64 | cut -d ' ' -f 1 > ./dist/query-tee-linux-amd64-sha-256
242+ sha256sum ./dist/cortex-darwin-amd64 | cut -d ' ' -f 1 > ./dist/cortex-darwin-amd64-sha-256
243+ sha256sum ./dist/cortex-linux-amd64 | cut -d ' ' -f 1 > ./dist/cortex-linux-amd64-sha-256
244+ sha256sum ./dist/query-tee-darwin-amd64 | cut -d ' ' -f 1 > ./dist/query-tee-darwin-amd64-sha-256
245+ sha256sum ./dist/query-tee-linux-amd64 | cut -d ' ' -f 1 > ./dist/query-tee-linux-amd64-sha-256
246246
247247# Generate packages for a Cortex release.
248248FPM_OPTS := fpm -s dir -v $(VERSION ) -n cortex -f \
@@ -277,6 +277,7 @@ dist/%.deb: dist/cortex-linux-amd64 $(wildcard packaging/deb/**)
277277 --package $@ $(FPM_ARGS ) \
278278 packaging/deb/default/cortex=/etc/default/cortex \
279279 packaging/deb/systemd/cortex.service=/etc/systemd/system/cortex.service
280+ sha256sum ./dist/cortex-$(VERSION ) .deb | cut -d ' ' -f 1 > ./dist/cortex-$(VERSION ) .deb-sha-256
280281
281282dist/% .rpm : dist/cortex-linux-amd64 $(wildcard packaging/rpm/** )
282283 $(FPM_OPTS ) -t rpm \
@@ -285,6 +286,7 @@ dist/%.rpm: dist/cortex-linux-amd64 $(wildcard packaging/rpm/**)
285286 --package $@ $(FPM_ARGS ) \
286287 packaging/rpm/sysconfig/cortex=/etc/sysconfig/cortex \
287288 packaging/rpm/systemd/cortex.service=/etc/systemd/system/cortex.service
289+ sha256sum ./dist/cortex-$(VERSION ) .rpm | cut -d ' ' -f 1 > ./dist/cortex-$(VERSION ) .rpm-sha-256
288290endif
289291
290292.PHONY : test-packages
0 commit comments