From e361a3b8fee091c177c29f403c8f803d7feeecce Mon Sep 17 00:00:00 2001 From: Maximilian Breithecker <72022235+mbreithecker@users.noreply.github.com> Date: Thu, 25 May 2023 11:15:00 +0200 Subject: [PATCH] chore: include environment in release builds (#58) --- Makefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index a1ec622e..a073a905 100644 --- a/Makefile +++ b/Makefile @@ -56,20 +56,20 @@ release: @mkdir -p release @GOOS=darwin GOARCH=amd64 go build $(BUILD_FLAGS) ./cmd/kyved - @tar -czf release/kyved_darwin_amd64.tar.gz kyved - @sha256sum release/kyved_darwin_amd64.tar.gz >> release/release_checksum + @tar -czf release/kyved_$(ENV)_darwin_amd64.tar.gz kyved + @sha256sum release/kyved_$(ENV)_darwin_amd64.tar.gz >> release/release_$(ENV)_checksum @GOOS=darwin GOARCH=arm64 go build $(BUILD_FLAGS) ./cmd/kyved - @tar -czf release/kyved_darwin_arm64.tar.gz kyved - @sha256sum release/kyved_darwin_arm64.tar.gz >> release/release_checksum + @tar -czf release/kyved_$(ENV)_darwin_arm64.tar.gz kyved + @sha256sum release/kyved_$(ENV)_darwin_arm64.tar.gz >> release/release_$(ENV)_checksum @GOOS=linux GOARCH=amd64 go build $(BUILD_FLAGS) ./cmd/kyved - @tar -czf release/kyved_linux_amd64.tar.gz kyved - @sha256sum release/kyved_linux_amd64.tar.gz >> release/release_checksum + @tar -czf release/kyved_$(ENV)_linux_amd64.tar.gz kyved + @sha256sum release/kyved_$(ENV)_linux_amd64.tar.gz >> release/release_$(ENV)_checksum @GOOS=linux GOARCH=arm64 go build $(BUILD_FLAGS) ./cmd/kyved - @tar -czf release/kyved_linux_arm64.tar.gz kyved - @sha256sum release/kyved_linux_arm64.tar.gz >> release/release_checksum + @tar -czf release/kyved_$(ENV)_linux_arm64.tar.gz kyved + @sha256sum release/kyved_$(ENV)_linux_arm64.tar.gz >> release/release_$(ENV)_checksum @rm kyved @echo "✅ Completed release creation!"