[GHA-Build] debug clear cache script
This commit is contained in:
2
.github/scripts/clear-s3-caches.sh
vendored
2
.github/scripts/clear-s3-caches.sh
vendored
@@ -1,3 +1,5 @@
|
||||
set -e
|
||||
|
||||
s3_path=$1
|
||||
aws cloudfront create-invalidation --distribution-id ECAO9Q8651L8M --paths /release/TOOLS/sts4-language-server-integrations/2023-07-31/*
|
||||
invalidation_json=`aws cloudfront create-invalidation --distribution-id ECAO9Q8651L8M --output json --paths /${s3_path}/*`
|
||||
|
||||
2
.github/workflows/clear_s3_cache.yml
vendored
2
.github/workflows/clear_s3_cache.yml
vendored
@@ -22,7 +22,9 @@ jobs:
|
||||
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
|
||||
run: |
|
||||
aws s3 cp s3://dist.springsource.com/snapshot/STS4/nightly/dist/e4.28 . --recursive --include "*" --dryrun
|
||||
aws s3 cp s3://dist.springsource.com/release/TOOLS/sts4-language-server-integrations/2023-07-31 . --recursive --include "*" --dryrun
|
||||
echo "Firing off invalidation request"
|
||||
aws cloudfront create-invalidation --distribution-id ECAO9Q8651L8M --paths "/release/TOOLS/sts4-language-server-integrations/2023-07-31/*"
|
||||
|
||||
Reference in New Issue
Block a user