#!/usr/bin/env bash

set -e -o pipefail

source $(dirname "$0")/common.sh

cd cloud-debug-java
chmod +x build.sh
./build.sh

VERSION=$(git describe --tags)
VERSION=${VERSION##v}

INDEX_PATH="/google-stackdriver-debugger/index.yml"
UPLOAD_PATH="/google-stackdriver-debugger/$PLATFORM/x86_64/google-stackdriver-debugger-$VERSION.tar.gz"

transfer_to_s3 "cdbg_java_agent_gce.tar.gz" $UPLOAD_PATH
update_index $INDEX_PATH $VERSION $UPLOAD_PATH
invalidate_cache $INDEX_PATH $UPLOAD_PATH

#!/usr/bin/env bash

set -e -o pipefail

source $(dirname "$0")/common.sh

cd cloud-debug-java
chmod +x build.sh
./build.sh

VERSION=$(git describe --tags)
VERSION=${VERSION##v}

INDEX_PATH="/google-stackdriver-debugger/$PLATFORM/x86_64/index.yml"
UPLOAD_PATH="/google-stackdriver-debugger/$PLATFORM/x86_64/google-stackdriver-debugger-$VERSION.tar.gz"

transfer_to_s3 "cdbg_java_agent_gce.tar.gz" $UPLOAD_PATH
update_index $INDEX_PATH $VERSION $UPLOAD_PATH
invalidate_cache $INDEX_PATH $UPLOAD_PATH

Update index location for Google Cloud Debugger
Update index location for Google Cloud Debugger
