Skip to content

Commit

Permalink
Merge pull request #66 from arangodb-managed/OAS-4755.fix.9
Browse files Browse the repository at this point in the history
Oas 4755.fix.9 | Small fix for terraform supported binary names
  • Loading branch information
adoi authored Jun 23, 2022
2 parents b2a8e3c + fa3faf9 commit 900e184
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ binaries:
CGO_ENABLED=0 gox \
-osarch="linux/amd64 linux/arm linux/arm64 darwin/amd64 darwin/arm64" \
-ldflags="-X main.projectVersion=${VERSION} -X main.projectBuild=${COMMIT}" \
-output="bin/{{.OS}}/{{.Arch}}/$(PROJECT)-$(VERSION)" \
-output="bin/{{.OS}}/{{.Arch}}/$(PROJECT)-v$(VERSION)" \
-tags="netgo" \
./...
mkdir -p assets
cd bin/linux/amd64 ; zip -D ../../../assets/$(PROJECT)_$(VERSION)_linux_amd64.zip $(PROJECT)-$(VERSION)
cd bin/linux/arm64 ; zip -D ../../../assets/$(PROJECT)_$(VERSION)_linux_arm64.zip $(PROJECT)-$(VERSION)
cd bin/darwin/amd64 ; zip -D ../../../assets/$(PROJECT)_$(VERSION)_darwin_amd64.zip $(PROJECT)-$(VERSION)
cd bin/darwin/arm64 ; zip -D ../../../assets/$(PROJECT)_$(VERSION)_darwin_arm64.zip $(PROJECT)-$(VERSION)
cd bin/linux/amd64 ; zip -D ../../../assets/$(PROJECT)_$(VERSION)_linux_amd64.zip $(PROJECT)-v$(VERSION)
cd bin/linux/arm64 ; zip -D ../../../assets/$(PROJECT)_$(VERSION)_linux_arm64.zip $(PROJECT)-v$(VERSION)
cd bin/darwin/amd64 ; zip -D ../../../assets/$(PROJECT)_$(VERSION)_darwin_amd64.zip $(PROJECT)-v$(VERSION)
cd bin/darwin/arm64 ; zip -D ../../../assets/$(PROJECT)_$(VERSION)_darwin_arm64.zip $(PROJECT)-v$(VERSION)
cp -f terraform-registry-manifest.json assets/$(PROJECT)_$(VERSION)_manifest.json
cd assets ; shasum -a 256 *.zip *.json > $(PROJECT)_$(VERSION)_SHA256SUMS

Expand Down

0 comments on commit 900e184

Please sign in to comment.