GHA: Agg Update Site work

This commit is contained in:
aboyko
2023-08-02 11:04:06 -04:00
parent f10bdcaa68
commit ec6597eaf4
2 changed files with 19 additions and 4 deletions

View File

@@ -4,7 +4,11 @@ on:
workflow_dispatch:
inputs:
version:
description: Version suffix in S3
description: Version suffix in S3 (i.e. 4.19.1.RELEASE)
required: true
type: string
latest:
description: Latest eclipse release version (i.e. e4.28)
required: true
type: string
@@ -34,9 +38,20 @@ jobs:
do
if [[ "$dir" =~ $pattern ]]; then
echo "Found ${dir}"
site_url="https://download.springsource.com/release/TOOLS/sts4/update/${dir}"
dir_name=${dir:0:-1}
site_url="https://download.springsource.com/release/TOOLS/sts4/update/${dir_name}"
${{ github.workspace }}/.github/scripts/generate-composite-site-files.sh ${{ steps.timestamp.outputs.date }} $site_url
cat ./compositeArtifacts.xml
cat ./compositeContent.xml
if [[ ${dir_name} == ${{ inputs.latest }} ]]; then
echo "aws s3 cp ./compositeArtifacts.xml s3://dist.springsource.com/release/TOOLS/sts4/update/latest --dryrun --acl public-read"
echo "aws s3 cp ./compositeContent.xml s3://dist.springsource.com/release/TOOLS/sts4/update/latest --dryrun --acl public-read"
echo "aws s3 cp ./p2.index s3://dist.springsource.com/release/TOOLS/sts4/update/latest --dryrun --acl public-read"
echo "Clear caches for path release/TOOLS/sts4/update/latest"
fi
echo "aws s3 mv ./compositeArtifacts.xml s3://dist.springsource.com/release/TOOLS/sts4/update/${dir} --dryrun --acl public-read"
echo "aws s3 mv ./compositeContent.xml s3://dist.springsource.com/release/TOOLS/sts4/update/${dir} --dryrun --acl public-read"
echo "aws s3 mv ./p2.index s3://dist.springsource.com/release/TOOLS/sts4/update/${dir} --dryrun --acl public-read"
echo "Clear caches for path release/TOOLS/sts4/update/${dir_name}"
fi
done