Skip to content
Snippets Groups Projects
Unverified Commit 2cb32e36 authored by Tomasz Maczukin's avatar Tomasz Maczukin
Browse files

Add more debug output to the release job

parent b8f9cd26
No related branches found
No related tags found
No related merge requests found
......@@ -6,11 +6,18 @@ __aws_s3_sync() {
local source="$1"
local target="$2"
local awsDebug=""
if [[ -n "${DEBUG_AWS_CLI}" ]]; then
awsDebug="--debug"
fi
echo -e "\033[32;1mSyncing with ${target}\033[0m"
if [[ "${DEBUG_S3_SYNC}" == "true" ]]; then
set -x
fi
aws s3 sync "${source}" "${target}" --acl public-read
aws ${awsDebug} --color on s3 sync "${source}" "${target}" --acl public-read
set +x
}
......@@ -40,9 +47,18 @@ echo "Generated Index page"
__aws_s3_sync bin "${S3_URL}"
set -x
git -c versionsort.prereleaseSuffix="-rc" tag -l "v*.*.*" --sort=-v:refname | awk '!/rc/' | head -n 1
set +x
# Copy the binaries to the latest directory.
LATEST_STABLE_TAG=$(git -c versionsort.prereleaseSuffix="-rc" tag -l "v*.*.*" --sort=-v:refname | awk '!/rc/' | head -n 1)
echo "Latest stable tag is: ${LATEST_STABLE_TAG}"
if [ $(git describe --exact-match --match ${LATEST_STABLE_TAG} >/dev/null 2>&1) ]; then
echo "Syncing the 'latest' bucket"
__aws_s3_sync bin "s3://${S3_BUCKET}/latest"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment