[GHA-Build] debug clearing cloudflare cache

This commit is contained in:
aboyko
2023-07-31 17:08:18 -04:00
parent 1e34337962
commit 77d628d74e
2 changed files with 42 additions and 18 deletions

View File

@@ -23,11 +23,13 @@ jobs:
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: |
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/*"
echo "List invalidations"
aws cloudfront list-invalidations --distribution-id ECAO9Q8651L8M
# ${{ github.workspace }}/.github/scripts/clear-s3-caches.sh ${{ inputs.path }}
# 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/*"
# echo "List invalidations"
# aws cloudfront list-invalidations --distribution-id ECAO9Q8651L8M
${{ github.workspace }}/.github/scripts/clear-s3-caches.sh ${{ inputs.path }}