Skip to content

Commit

Permalink
Merge pull request #4 from fortanix/aman/publish
Browse files Browse the repository at this point in the history
Release Updates for Publishing to Registry
  • Loading branch information
aman-ahuja-fortanix authored Nov 25, 2021
2 parents 96557cd + 5aa5198 commit 66a6814
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,22 @@ release:
mkdir -p ./bin/${VERSION}/windows_amd64
mkdir -p ./bin/${VERSION}/darwin_amd64
mkdir -p ./bin/${VERSION}/darwin_arm64
GOOS=linux GOARCH=386 go build -o ./bin/${VERSION}/linux_386/${BINARY}
GOOS=linux GOARCH=amd64 go build -o ./bin/${VERSION}/linux_amd64/${BINARY}
GOOS=linux GOARCH=arm go build -o ./bin/${VERSION}/linux_arm/${BINARY}
GOOS=windows GOARCH=386 go build -o ./bin/${VERSION}/windows_386/${BINARY}
GOOS=windows GOARCH=amd64 go build -o ./bin/${VERSION}/windows_amd64/${BINARY}
GOOS=darwin GOARCH=amd64 go build -o ./bin/${VERSION}/darwin_amd64/${BINARY}
GOOS=darwin GOARCH=arm64 go build -o ./bin/${VERSION}/darwin_arm64/${BINARY}
GOOS=linux GOARCH=386 go build -o ./bin/${VERSION}/linux_386/${BINARY}_v${VERSION}
GOOS=linux GOARCH=amd64 go build -o ./bin/${VERSION}/linux_amd64/${BINARY}_v${VERSION}
GOOS=linux GOARCH=arm go build -o ./bin/${VERSION}/linux_arm/${BINARY}_v${VERSION}
GOOS=windows GOARCH=386 go build -o ./bin/${VERSION}/windows_386/${BINARY}_v${VERSION}
GOOS=windows GOARCH=amd64 go build -o ./bin/${VERSION}/windows_amd64/${BINARY}_v${VERSION}
GOOS=darwin GOARCH=amd64 go build -o ./bin/${VERSION}/darwin_amd64/${BINARY}_v${VERSION}
GOOS=darwin GOARCH=arm64 go build -o ./bin/${VERSION}/darwin_arm64/${BINARY}_v${VERSION}
zip -j ./${BINARY}_${VERSION}_linux_386.zip ./bin/${VERSION}/linux_386/${BINARY}_v${VERSION}
zip -j ./${BINARY}_${VERSION}_linux_amd64.zip ./bin/${VERSION}/linux_amd64/${BINARY}_v${VERSION}
zip -j ./${BINARY}_${VERSION}_linux_arm.zip ./bin/${VERSION}/linux_arm/${BINARY}_v${VERSION}
zip -j ./${BINARY}_${VERSION}_windows_386.zip ./bin/${VERSION}/windows_386/${BINARY}_v${VERSION}
zip -j ./${BINARY}_${VERSION}_windows_amd64.zip ./bin/${VERSION}/windows_amd64/${BINARY}_v${VERSION}
zip -j ./${BINARY}_${VERSION}_darwin_amd64.zip ./bin/${VERSION}/darwin_amd64/${BINARY}_v${VERSION}
zip -j ./${BINARY}_${VERSION}_darwin_arm64.zip ./bin/${VERSION}/darwin_arm64/${BINARY}_v${VERSION}
shasum -a 256 *.zip > ${BINARY}_${VERSION}_SHA256SUMS


install: build
mkdir -p ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}/${VERSION}/${OS_ARCH}
Expand Down

0 comments on commit 66a6814

Please sign in to comment.