pulumi/scripts/publish_tgz.sh
Matt Ellis 2cfbe81adb Remove dependency on pulumi/home
Stop cloning pulumi/home. This doesn't work in Travis because public
repositories can not have private SSH keys, which we'd need to clone
this repository. All the scripts we consume from there are now in
pulumi/scripts and so we'll just consume them from there.
2018-06-17 22:09:15 -07:00

25 lines
651 B
Bash
Executable file

#!/bin/bash
# publish.sh builds and publishes the tarballs that our other repositories consume.
set -o nounset -o errexit -o pipefail
ROOT=$(dirname $0)/..
PUBLISH=$GOPATH/src/github.com/pulumi/scripts/ci/publish.sh
PUBLISH_GOARCH=("amd64")
PUBLISH_PROJECT="pulumi"
if [ ! -f $PUBLISH ]; then
>&2 echo "error: Missing publish script at $PUBLISH"
exit 1
fi
OS=$(go env GOOS)
echo "Publishing SDK build to s3://eng.pulumi.com/:"
for ARCH in "${PUBLISH_GOARCH[@]}"
do
export GOARCH=${ARCH}
RELEASE_INFO=($($(dirname $0)/make_release.sh))
${PUBLISH} ${RELEASE_INFO[0]} "${PUBLISH_PROJECT}/${OS}/${ARCH}" ${RELEASE_INFO[@]:1}
done