GHA: Agg Update Site work
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Update Aggregate Update Sites
|
||||
name: Aggregate Distro Update Sites
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
@@ -39,7 +39,7 @@ jobs:
|
||||
if [[ "$dir" =~ $pattern ]]; then
|
||||
echo "Found ${dir}"
|
||||
dir_name=${dir:0:-1}
|
||||
site_url="https://download.springsource.com/release/TOOLS/sts4/update/${dir_name}"
|
||||
site_url="https://download.springsource.com/release/TOOLS/sts4/update/${{ inputs.version }}/${dir_name}"
|
||||
${{ github.workspace }}/.github/scripts/generate-composite-site-files.sh ${{ steps.timestamp.outputs.date }} $site_url
|
||||
cat ./compositeArtifacts.xml
|
||||
cat ./compositeContent.xml
|
||||
42
.github/workflows/aggregate-ls-extensions-update-site.yml
vendored
Normal file
42
.github/workflows/aggregate-ls-extensions-update-site.yml
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
name: Aggregate LS Extensions Update Sites
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: Version suffix in S3 (i.e. 4.19.1.RELEASE)
|
||||
required: true
|
||||
type: string
|
||||
ls-extensions-update-site-suffix:
|
||||
description: The suffix of the p2 repo URL in S3 (i.e. 2023-08-01)
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
|
||||
update-aggregate-update-sites:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
|
||||
with:
|
||||
sparse-checkout: |
|
||||
.github
|
||||
- name: Timestamp
|
||||
id: timestamp
|
||||
run: echo "date=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT
|
||||
- name: Generate and Upload Aggregate Update Sites Data
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.TOOLS_S3_ACCESS_KEY }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.TOOLS_S3_SECRET_KEY }}
|
||||
AWS_DEFAULT_REGION: us-east-1
|
||||
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
|
||||
CLOUDFLARE_CACHE_TOKEN: ${{ secrets.CLOUDFLARE_CACHE_TOKEN }}
|
||||
run: |
|
||||
site_url="https://download.springsource.com/release/TOOLS/sts4/update/${{ inputs.version }}/${{ inputs.ls-extensions-update-site-suffix }}"
|
||||
${{ github.workspace }}/.github/scripts/generate-composite-site-files.sh ${{ steps.timestamp.outputs.date }} $site_url
|
||||
cat ./compositeArtifacts.xml
|
||||
cat ./compositeContent.xml
|
||||
echo "aws s3 cp ./compositeArtifacts.xml s3://dist.springsource.com/release/TOOLS/sts4-language-server-integrations --dryrun --acl public-read"
|
||||
echo "aws s3 cp ./compositeContent.xml s3://dist.springsource.com/release/TOOLS/sts4-language-server-integrations --dryrun --acl public-read"
|
||||
echo "aws s3 cp ./p2.index s3://dist.springsource.com/release/TOOLS/sts4/update/sts4-language-server-integrations --dryrun --acl public-read"
|
||||
echo "Clear caches for path release/TOOLS/sts4/update/sts4-language-server-integrations"
|
||||
Reference in New Issue
Block a user