Skip to content

Commit 6bbf648

Browse files
committed
Update build.sh
1 parent 6a8f00c commit 6bbf648

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/build.sh

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

5353
# Build!
54+
VERSION="1.62.0"
5455
echo "==> Building..."
5556
gox \
5657
-os="${XC_OS}" \
5758
-arch="${XC_ARCH}" \
5859
-osarch="${XC_EXCLUDE_OSARCH}" \
5960
-ldflags "${LD_FLAGS}" \
60-
-output "pkg/{{.OS}}_{{.Arch}}/terraform-provider-ibm" \
61+
-output "pkg/{{.OS}}_{{.Arch}}/terraform-provider-ibm_${VERSION}_{{.OS}}_{{.Arch}}" \
6162
.
6263

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

9698
pushd $PLATFORM >/dev/null 2>&1
97-
zip ../${OSARCH}.zip ./*
99+
zip ../${ZIPNAME}.zip ./*
98100
popd >/dev/null 2>&1
99101
done
100102
fi

0 commit comments

Comments
 (0)