Skip to content

Commit

Permalink
Merge pull request docker#15551 from crazy-max/ci-invalidate-cache
Browse files Browse the repository at this point in the history
ci: invalidate cloudfront cache
  • Loading branch information
usha-mandya authored Sep 2, 2022
2 parents 79ca07f + 69e96eb commit ddc9a3d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down

0 comments on commit ddc9a3d

Please sign in to comment.