GHA: Revert downloads page script changes. Update all to Cloudgate. Concourse

This commit is contained in:
aboyko
2023-11-09 17:41:23 -05:00
parent 0673e24f00
commit 2a493dbbb0
12 changed files with 97 additions and 286 deletions

View File

@@ -2,14 +2,14 @@ dist_path=$1
eclipse_version=$2
build_type=$3
s3_url=s3://tools-spring-io/${dist_path}
s3_url=s3://dist.springsource.com/${dist_path}
downloads_html="sts4-nightly-${eclipse_version}.html"
files=`aws s3 cp ${s3_url} . --recursive --exclude "*" --include "spring-tool-suite-4*.zip" --include "spring-tool-suite-4*.dmg" --include "spring-tool-suite-4*.self-extracting.jar" --include "spring-tool-suite-4*.tar.gz" --exclude "*/*" --dryrun`
rm -f ./${downloads_html}
echo '<ul>' >> $downloads_html
for file in $files
do
if [[ "$file" =~ ^"s3://tools-spring-io" ]]; then
if [[ "$file" =~ ^"s3://dist." ]]; then
download_url=https://download${file:9}
filename=${file:${#s3_url}+1}
echo ' <li><a href="'${download_url}'">'${filename}'</li>' >> $downloads_html