Merge pull request #15551 from crazy-max/ci-invalidate-cache

ci: invalidate cloudfront cache
This commit is contained in:
Usha Mandya 2022-09-02 10:56:37 +01:00 committed by GitHub
commit ddc9a3d91d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -113,6 +113,13 @@ jobs:
AWS_REGION: us-east-1 # cloudfront and lambda edge functions are only available in us-east-1 region
AWS_CLOUDFRONT_ID: ${{ env.DOCS_CLOUDFRONT_ID }}
AWS_LAMBDA_FUNCTION: ${{ env.DOCS_LAMBDA_FUNCTION_REDIRECTS }}
-
name: Invalidate Cloudfront cache
if: ${{ env.DOCS_CLOUDFRONT_ID != '' }}
run: |
aws cloudfront create-invalidation --distribution-id ${{ env.DOCS_CLOUDFRONT_ID }} --paths "/*"
env:
AWS_REGION: us-east-1 # cloudfront is only available in us-east-1 region
-
name: Send Slack notification
if: ${{ env.SEND_SLACK_MSG == 'true' }}