Skip to content

Commit b8f0e85

Browse files
committed
Merge branch 'buildsh-forbinaries' into eg-resource-binding
2 parents 0678ef2 + 6bbf648 commit b8f0e85

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/build.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ if [[ -n "${TF_RELEASE}" ]]; then
5151
fi
5252

5353
# Build!
54-
VERSION="1.64.0"
54+
VERSION="1.85.0"
5555
echo "==> Building..."
5656
gox \
5757
-os="${XC_OS}" \
5858
-arch="${XC_ARCH}" \
5959
-osarch="${XC_EXCLUDE_OSARCH}" \
6060
-ldflags "${LD_FLAGS}" \
61-
-output "pkg/{{.OS}}_{{.Arch}}/terraform-provider-ibm" \
61+
-output "pkg/{{.OS}}_{{.Arch}}/terraform-provider-ibm_${VERSION}_{{.OS}}_{{.Arch}}" \
6262
.
6363

6464
# Move all the compiled things to the $GOPATH/bin
@@ -92,10 +92,11 @@ if [ "${TF_DEV}x" = "x" ]; then
9292
echo "==> Packaging..."
9393
for PLATFORM in $(find ./pkg -mindepth 1 -maxdepth 1 -type d); do
9494
OSARCH=$(basename ${PLATFORM})
95+
ZIPNAME="terraform-provider-ibm_${VERSION}_${OSARCH}"
9596
echo "--> ${OSARCH}"
9697

9798
pushd $PLATFORM >/dev/null 2>&1
98-
zip ../${OSARCH}.zip ./*
99+
zip ../${ZIPNAME}.zip ./*
99100
popd >/dev/null 2>&1
100101
done
101102
fi

0 commit comments

Comments
 (0)