[GHA-Build] Placeholders for clearing S3 caches in the builds

This commit is contained in:
aboyko
2023-07-31 19:00:59 -04:00
parent f09bf3ad98
commit 0caec5b658
3 changed files with 35 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
set -e
s3_path=$1
#Flush AWS Cloudfront Cache
#invalidation_json=`aws cloudfront create-invalidation --distribution-id ECAO9Q8651L8M --output json --paths "/${s3_path}/*"`
#echo "Invalidation response: ${invalidation_json}"
#invalidation_id=`echo $invalidation_json | jq -r '.Invalidation.Id'`
@@ -14,7 +16,7 @@ s3_path=$1
#done
#echo "Final invalidation status: ${invalidation_status}"
# Flush CloudFlare cache
# Flush CloudFlare Cache
s3_url=s3://dist.springsource.com/${s3_path}
files=`aws s3 cp ${s3_url} . --recursive --include "*" --dryrun`
counter=0