Skip to content

Commit dc69e70

Browse files
committed
[GHA] Aggregate update sites and backup
1 parent 9def236 commit dc69e70

5 files changed

+28
-28
lines changed

.github/workflows/aggregate-distro-update-sites.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
CLOUDFLARE_CACHE_TOKEN: ${{ secrets.CLOUDFLARE_CACHE_TOKEN }}
5252
run: |
5353
echo "S3 Aggregate Update Sites Creation..."
54-
dirs=`aws s3 ls s3://${AWS_S3_BUCKET}/release/TOOLS/sts4/update/${{ inputs.version }}/`
54+
dirs=`aws s3 ls s3://${AWS_S3_BUCKET}/release/update/${{ inputs.version }}/`
5555
echo "${dirs}"
5656
pattern='^e[0-9]+.[0-9]+/$'
5757
invalid_urls=""
@@ -60,25 +60,25 @@ jobs:
6060
if [[ "$dir" =~ $pattern ]]; then
6161
echo "Found ${dir}"
6262
dir_name=${dir:0:-1}
63-
site_url="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5/update/${{ inputs.version }}/${dir_name}"
63+
site_url="${DOWNLOAD_URL_ROOT}/release/update/${{ inputs.version }}/${dir_name}"
6464
${{ github.workspace }}/.github/scripts/generate-composite-site-files.sh ${{ steps.timestamp.outputs.date }} $site_url $dir_name
6565
cat ./compositeArtifacts.xml
6666
cat ./compositeContent.xml
6767
if [[ ${dir_name} == ${{ inputs.latest }} ]]; then
68-
aws s3 cp ./compositeArtifacts.xml s3://${AWS_S3_BUCKET}/release/TOOLS/sts5/update/latest/ --checksum-algorithm CRC32
69-
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5/update/latest/compositeArtifacts.xml "
70-
aws s3 cp ./compositeContent.xml s3://${AWS_S3_BUCKET}/release/TOOLS/sts5/update/latest/ --checksum-algorithm CRC32
71-
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5/update/latest/compositeContent.xml "
72-
aws s3 cp ./p2.index s3://${AWS_S3_BUCKET}/release/TOOLS/sts5/update/latest/ --checksum-algorithm CRC32
73-
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5/update/latest/p2.index "
68+
aws s3 cp ./compositeArtifacts.xml s3://${AWS_S3_BUCKET}/release/update/latest/ --checksum-algorithm CRC32
69+
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/update/latest/compositeArtifacts.xml "
70+
aws s3 cp ./compositeContent.xml s3://${AWS_S3_BUCKET}/release/update/latest/ --checksum-algorithm CRC32
71+
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/update/latest/compositeContent.xml "
72+
aws s3 cp ./p2.index s3://${AWS_S3_BUCKET}/release/update/latest/ --checksum-algorithm CRC32
73+
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/update/latest/p2.index "
7474
echo "TODO: Purge Cache"
7575
fi
76-
aws s3 mv ./compositeArtifacts.xml s3://${AWS_S3_BUCKET}/release/TOOLS/sts5/update/${dir} --checksum-algorithm CRC32
77-
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5/update/${dir_name}/compositeArtifacts.xml "
78-
aws s3 mv ./compositeContent.xml s3://${AWS_S3_BUCKET}/release/TOOLS/sts5/update/${dir} --checksum-algorithm CRC32
79-
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5/update/${dir_name}/compositeContent.xml "
80-
aws s3 mv ./p2.index s3://${AWS_S3_BUCKET}/release/TOOLS/sts5/update/${dir} --checksum-algorithm CRC32
81-
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5/update/${dir_name}/p2.index "
76+
aws s3 mv ./compositeArtifacts.xml s3://${AWS_S3_BUCKET}/release/update/${dir} --checksum-algorithm CRC32
77+
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/update/${dir_name}/compositeArtifacts.xml "
78+
aws s3 mv ./compositeContent.xml s3://${AWS_S3_BUCKET}/release/update/${dir} --checksum-algorithm CRC32
79+
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/update/${dir_name}/compositeContent.xml "
80+
aws s3 mv ./p2.index s3://${AWS_S3_BUCKET}/release/update/${dir} --checksum-algorithm CRC32
81+
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/update/${dir_name}/p2.index "
8282
fi
8383
done
8484
echo "invalid_urls=$invalid_urls" >> $GITHUB_OUTPUT

.github/workflows/aggregate-ls-extensions-update-site.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@ jobs:
3535
run: |
3636
echo "S3 Aggregate Update Sites Creation..."
3737
invalid_urls=""
38-
site_url="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5-language-server-integrations/${{ inputs.version }}"
38+
site_url="${DOWNLOAD_URL_ROOT}/release/language-server-integrations/${{ inputs.version }}"
3939
${{ github.workspace }}/.github/scripts/generate-composite-site-files.sh ${{ steps.timestamp.outputs.date }} $site_url
4040
cat ./compositeArtifacts.xml
4141
cat ./compositeContent.xml
42-
aws s3 cp ./compositeArtifacts.xml s3://$AWS_S3_BUCKET/release/TOOLS/sts5-language-server-integrations/ --checksum-algorithm CRC32
43-
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5-language-server-integrations/compositeArtifacts.xml "
44-
aws s3 cp ./compositeContent.xml s3://$AWS_S3_BUCKET/release/TOOLS/sts5-language-server-integrations/ --checksum-algorithm CRC32
45-
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5-language-server-integrations/compositeContent.xml "
46-
aws s3 cp ./p2.index s3://$AWS_S3_BUCKET/release/TOOLS/sts5-language-server-integrations/ --checksum-algorithm CRC32
47-
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5-language-server-integrations/p2.index"
42+
aws s3 cp ./compositeArtifacts.xml s3://$AWS_S3_BUCKET/release/language-server-integrations/ --checksum-algorithm CRC32
43+
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/language-server-integrations/compositeArtifacts.xml "
44+
aws s3 cp ./compositeContent.xml s3://$AWS_S3_BUCKET/release/language-server-integrations/ --checksum-algorithm CRC32
45+
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/language-server-integrations/compositeContent.xml "
46+
aws s3 cp ./p2.index s3://$AWS_S3_BUCKET/release/language-server-integrations/ --checksum-algorithm CRC32
47+
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/language-server-integrations/p2.index"
4848
echo "invalid_urls=$invalid_urls" >> $GITHUB_OUTPUT
4949
- uses: ./.github/actions/cloudflare-purge
5050
name: Invalidate URLs

.github/workflows/backup-eclipse-releases-to-gcp.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ jobs:
4444
- name: Copy from S3 to GCP
4545
run: |
4646
echo "Copying Eclipse LS extensions ${{ inputs.ls_version }} to GCP..."
47-
url_path=spring-tools/release/TOOLS/sts4-language-server-integrations/${{ inputs.ls_version }}
47+
url_path=spring-tools/release/language-server-integrations/${{ inputs.ls_version }}
4848
gcloud storage cp s3://$AWS_S3_BUCKET/$url_path $GCP_BUCKET/$url_path --recursive
4949
5050
echo "Copying Eclipse Distro P2 repos ${{ inputs.release_version }} to GCP..."
51-
url_path=spring-tools/release/TOOLS/sts4/update/${{ inputs.release_version }}
51+
url_path=spring-tools/release/update/${{ inputs.release_version }}
5252
gcloud storage cp s3://$AWS_S3_BUCKET/$url_path $GCP_BUCKET/$url_path --recursive
5353
5454
echo "Copying Eclipse Distros ${{ inputs.release_version }} to GCP..."
55-
url_path=spring-tools/release/STS4/${{ inputs.release_version }}/dist
55+
url_path=spring-tools/release/dist/${{ inputs.release_version }}
5656
gcloud storage cp s3://$AWS_S3_BUCKET/$url_path $GCP_BUCKET/$url_path --recursive

.github/workflows/gen-nighly-downloads.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
steps:
1818
- name: Update Nightly Distro Downloads page
1919
run: |
20-
dist_path="snapshot/STS4/nightly/dist/e4.32"
20+
dist_path="snapshot/dist/e4.32"
2121
s3_url=s3://$AWS_S3_BUCKET/${dist_path}/
22-
downloads_html="sts4-nightly-e4.32.html"
22+
downloads_html="sts-nightly-e4.32.html"
2323
files=`aws s3 cp ${s3_url} . --recursive --exclude "*" --include "spring-tools-for-eclipse*.zip" --include "spring-tools-for-eclipse*.dmg" --include "spring-tools-for-eclipse*.self-extracting.jar" --include "spring-tools-for-eclipse*.tar.gz" --exclude "*/*" --dryrun`
2424
echo '<ul>' >> $downloads_html
2525
s3_url_prefix="s3://${AWS_S3_BUCKET}"
@@ -34,7 +34,7 @@ jobs:
3434
done
3535
echo '</ul>' >> $downloads_html
3636
cat ./$downloads_html
37-
aws s3 mv ./$downloads_html s3://$AWS_S3_BUCKET/snapshot/STS4/ --dryrun
37+
aws s3 mv ./$downloads_html s3://$AWS_S3_BUCKET/snapshot/ --dryrun
3838
files=`aws s3 ls ${s3_url}`
3939
for file in $files
4040
do

.github/workflows/gh-hosted-eclipse-distro-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
default: 'snapshot'
1515
type: string
1616
sts-language-servers-version:
17-
description: version of sts4 ls extensions
17+
description: version of sts ls extensions
1818
required: false
1919
type: string
2020
p2-qualifier:

0 commit comments

Comments
 (0)