mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
ci: invalidate cloudfront cache
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
7
.github/workflows/deploy.yml
vendored
7
.github/workflows/deploy.yml
vendored
@@ -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' }}
|
||||
|
||||
Reference in New Issue
Block a user