Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 32 lines (21 sloc) 900 Bytes
# AWS_PROFILE=cfcommunity VERSION=0.0.1 ./scripts/
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
set -eu
: ${VERSION:?required}
echo "Building config-server-v${VERSION}"
cd src/config-server-sidecar
GOOS=linux GOARCH=amd64 go build -o "config-server-v${VERSION}" .
echo "Uploading to s3://${BUCKET}/config-server-sidecar/"
aws s3 cp \
"src/config-server-sidecar/config-server-v${VERSION}" \
rm "src/config-server-sidecar/config-server-v${VERSION}"
echo "Path to download:${BUCKET}/config-server-sidecar/config-server-v${VERSION}"
echo "Updating .version and .downloadurl"
echo $VERSION > $ROOT/.version
echo${BUCKET}/config-server-sidecar/config-server-v${VERSION} > $ROOT/.downloadurl
You can’t perform that action at this time.