Skip to content
Snippets Groups Projects
Commit c57b3d7e authored by Arran Walker's avatar Arran Walker
Browse files

Merge branch 'ajwalker/fix-upload' into 'main'

parents 650d119b bed3a2d9
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
set -eo pipefail set -eo pipefail
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}"
__aws_s3_sync() { __aws_s3_sync() {
local source="$1" local source="$1"
local target="$2" local target="$2"
...@@ -13,12 +16,7 @@ __aws_s3_sync() { ...@@ -13,12 +16,7 @@ __aws_s3_sync() {
echo -e "\033[32;1mSyncing with ${target}\033[0m" echo -e "\033[32;1mSyncing with ${target}\033[0m"
if [[ "${DEBUG_S3_SYNC}" == "true" ]]; then
set -x
fi
aws ${awsDebug} --color on s3 sync "${source}" "${target}" --acl public-read aws ${awsDebug} --color on s3 sync "${source}" "${target}" --acl public-read
set +x
} }
VERSION="$(./.gitlab/ci/scripts/version.sh 2>/dev/null || echo 'dev')" VERSION="$(./.gitlab/ci/scripts/version.sh 2>/dev/null || echo 'dev')"
...@@ -48,10 +46,6 @@ echo "Generated Index page" ...@@ -48,10 +46,6 @@ echo "Generated Index page"
__aws_s3_sync bin "${S3_URL}" __aws_s3_sync bin "${S3_URL}"
# Copy the binaries to the latest directory. # 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 if git describe --exact-match --match ${LATEST_STABLE_TAG} >/dev/null 2>&1; then
echo "Syncing the 'latest' bucket" echo "Syncing the 'latest' bucket"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment