-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 in VTMTF/terraform-provider-vtm-public from VTM…
…TF-182 to master * commit '623f80b91dca708a4790b850146f7cd6ea885bdc': Add 18.2 User Guide Release 18.2 of the Terraform Provider for vTM
- Loading branch information
Showing
505 changed files
with
54,633 additions
and
38,992 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bin/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,33 @@ | ||
#!/bin/bash | ||
|
||
CGO_ENABLED=0 GOOS=linux go build -o terraform-provider-vtm_v4.0.0 -a -ldflags '-extldflags "-static"' . | ||
platforms="linux" | ||
export GOARCH="amd64" | ||
|
||
if [[ $# -ne "0" ]]; then | ||
case "$1" in | ||
all) platforms="linux darwin windows" | ||
;; | ||
linux) platforms="linux" | ||
;; | ||
mac) platforms="darwin" | ||
;; | ||
win) platforms="windows" | ||
;; | ||
esac | ||
fi | ||
|
||
binBase="../bin" | ||
|
||
for platform in $platforms; do | ||
binDir="${binBase}/${platform}-${GOARCH}" | ||
mkdir -p ${binDir} | ||
echo "Building v4.0.2 for ${platform}.." | ||
if [[ "${platform}" == "windows" ]]; then | ||
ext=".exe" | ||
else | ||
ext="" | ||
fi | ||
TARGET=${binDir}/terraform-provider-vtm_v4.0.2${ext} | ||
CGO_ENABLED=0 GOOS=$platform go build -o ${TARGET} \ | ||
-a -ldflags '-extldflags "-static -s"' . | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.