Use hc-releases
This commit is contained in:
parent
f3ab7f2559
commit
e98ab725c2
|
@ -36,14 +36,6 @@ shasum -a256 * > ./terraform_${VERSION}_SHA256SUMS
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Upload
|
# Upload
|
||||||
for ARCHIVE in ./pkg/dist/*; do
|
hc-releases -upload=./pkg/dist
|
||||||
ARCHIVE_NAME=$(basename ${ARCHIVE})
|
|
||||||
|
|
||||||
echo Uploading: $ARCHIVE_NAME
|
|
||||||
curl \
|
|
||||||
-T ${ARCHIVE} \
|
|
||||||
-umitchellh:${BINTRAY_API_KEY} \
|
|
||||||
"https://api.bintray.com/content/mitchellh/terraform/terraform/${VERSION}/${ARCHIVE_NAME}"
|
|
||||||
done
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue