|
|
@ -17,21 +17,23 @@
|
|
|
|
# Run this from deployment-manager root to build and push the dm client plus
|
|
|
|
# Run this from deployment-manager root to build and push the dm client plus
|
|
|
|
# kubernetes install config into the publicly readable GCS bucket gs://get-dm.
|
|
|
|
# kubernetes install config into the publicly readable GCS bucket gs://get-dm.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Must have EDIT permissions on the dm-k8s-testing GCP project.
|
|
|
|
# Must have EDIT permissions on the dm-k8s-prod GCP project.
|
|
|
|
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
|
|
|
|
PLATFORM=$(uname | tr '[:upper:]' '[:lower:]')
|
|
|
|
DEFAULT_TAG=v1.2
|
|
|
|
ARCH=$(uname -m)
|
|
|
|
DEFAULT_BINARY=${GOPATH}/bin/dm
|
|
|
|
|
|
|
|
DEFAULT_PLATFORM=$(uname | tr '[:upper:]' '[:lower:]')
|
|
|
|
|
|
|
|
DEFAULT_ARCH=$(uname -m)
|
|
|
|
|
|
|
|
|
|
|
|
STORAGE_BUCKET=gs://get-dm
|
|
|
|
STORAGE_BUCKET=gs://get-dm
|
|
|
|
ZIP=dm-latest-${PLATFORM}-${ARCH}.zip
|
|
|
|
ZIP=dm-${TAG:-DEFAULT_TAG}-${PLATFORM:-DEFAULT_PLATFORM}-${ARCH:-DEFAULT_ARCH}.zip
|
|
|
|
|
|
|
|
|
|
|
|
echo "Building..."
|
|
|
|
echo "Building..."
|
|
|
|
make
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
|
|
echo "Zipping ${ZIP}..."
|
|
|
|
echo "Zipping ${ZIP}..."
|
|
|
|
zip -j ${ZIP} ${GOPATH}/bin/dm install.yaml
|
|
|
|
zip -j ${ZIP} ${BINARY:-DEFAULT_BINARY} install.yaml
|
|
|
|
|
|
|
|
|
|
|
|
echo "Uploading ${ZIP} to ${STORAGE_BUCKET}..."
|
|
|
|
echo "Uploading ${ZIP} to ${STORAGE_BUCKET}..."
|
|
|
|
gsutil cp ${ZIP} ${STORAGE_BUCKET}
|
|
|
|
gsutil cp ${ZIP} ${STORAGE_BUCKET}
|
|
|
|