-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild-release.sh
executable file
·21 lines (18 loc) · 2.66 KB
/
build-release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
#LATEST_TAG=`git describe --tags --abbrev=0` #v0.1.2
LATEST_TAG=$1
VERSION=${LATEST_TAG#v}
VVERSION=v${VERSION}
echo LATEST_TAG=$LATEST_TAG
export GOOS=darwin; export GOARCH=amd64 ;go build -o terraform-provider-secretsmanager_${VVERSION}; zip -m terraform-provider-secretsmanager_${VERSION}_${GOOS}_${GOARCH}.zip terraform-provider-secretsmanager_${VVERSION}
export GOOS=darwin; export GOARCH=arm64 ;go build -o terraform-provider-secretsmanager_${VVERSION}; zip -m terraform-provider-secretsmanager_${VERSION}_${GOOS}_${GOARCH}.zip terraform-provider-secretsmanager_${VVERSION}
export GOOS=freebsd; export GOARCH=386 ;go build -o terraform-provider-secretsmanager_${VVERSION}; zip -m terraform-provider-secretsmanager_${VERSION}_${GOOS}_${GOARCH}.zip terraform-provider-secretsmanager_${VVERSION}
export GOOS=freebsd; export GOARCH=amd64 ;go build -o terraform-provider-secretsmanager_${VVERSION}; zip -m terraform-provider-secretsmanager_${VERSION}_${GOOS}_${GOARCH}.zip terraform-provider-secretsmanager_${VVERSION}
export GOOS=freebsd; export GOARCH=arm ;go build -o terraform-provider-secretsmanager_${VVERSION}; zip -m terraform-provider-secretsmanager_${VERSION}_${GOOS}_${GOARCH}.zip terraform-provider-secretsmanager_${VVERSION}
export GOOS=linux; export GOARCH=386 ;go build -o terraform-provider-secretsmanager_${VVERSION}; zip -m terraform-provider-secretsmanager_${VERSION}_${GOOS}_${GOARCH}.zip terraform-provider-secretsmanager_${VVERSION}
export GOOS=linux; export GOARCH=amd64 ;go build -o terraform-provider-secretsmanager_${VVERSION}; zip -m terraform-provider-secretsmanager_${VERSION}_${GOOS}_${GOARCH}.zip terraform-provider-secretsmanager_${VVERSION}
export GOOS=linux; export GOARCH=arm ;go build -o terraform-provider-secretsmanager_${VVERSION}; zip -m terraform-provider-secretsmanager_${VERSION}_${GOOS}_${GOARCH}.zip terraform-provider-secretsmanager_${VVERSION}
export GOOS=linux; export GOARCH=arm64 ;go build -o terraform-provider-secretsmanager_${VVERSION}; zip -m terraform-provider-secretsmanager_${VERSION}_${GOOS}_${GOARCH}.zip terraform-provider-secretsmanager_${VVERSION}
export GOOS=windows; export GOARCH=386 ;go build -o terraform-provider-secretsmanager_${VVERSION}.exe; zip -m terraform-provider-secretsmanager_${VERSION}_${GOOS}_${GOARCH}.zip terraform-provider-secretsmanager_${VVERSION}.exe
export GOOS=windows; export GOARCH=amd64 ;go build -o terraform-provider-secretsmanager_${VVERSION}.exe; zip -m terraform-provider-secretsmanager_${VERSION}_${GOOS}_${GOARCH}.zip terraform-provider-secretsmanager_${VVERSION}.exe
shasum -a 256 terraform-provider-secretsmanager_${VERSION}_*.zip > terraform-provider-secretsmanager_${VERSION}_SHA256SUMS