Skip to content

Commit

Permalink
modify invalidation path
Browse files Browse the repository at this point in the history
  • Loading branch information
arch1995 committed Jun 7, 2023
1 parent 570abb0 commit 80122e1
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 35 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,9 @@ jobs:
# Invalidate Cloudfront (this action)
- name: invalidate
if: github.ref == 'refs/heads/master'
uses: chetan/invalidate-cloudfront-action@master
env:
DISTRIBUTION: ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_ID }}
PATHS: "/*"
AWS_REGION: ${{ secrets.AWS_REGION_US }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
uses: chaitanyapotti/cloudfront-update-distribution@v2
with:
cloudfront-distribution-id: ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_ID }}
cloudfront-invalidation-path: "/*"
cloudfront-invalidation-required: true
cloudfront-wait-for-service-update: false
13 changes: 6 additions & 7 deletions .github/workflows/deploy-auth0-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,9 @@ jobs:
# Invalidate Cloudfront (this action)
- name: invalidate
if: ((github.event_name == 'release') || (github.event_name == 'push' && contains(github.event.head_commit.message, '[deploy-demos]')))
uses: chetan/invalidate-cloudfront-action@master
env:
DISTRIBUTION: ${{ secrets.AWS_CLOUDFRONT_AUTH0_DEMO_DISTRIBUTION_ID }}
PATHS: "/*"
AWS_REGION: ${{ secrets.AWS_REGION_US }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
uses: chaitanyapotti/cloudfront-update-distribution@v2
with:
cloudfront-distribution-id: ${{ secrets.AWS_CLOUDFRONT_AUTH0_DEMO_DISTRIBUTION_ID }}
cloudfront-invalidation-path: "/*"
cloudfront-invalidation-required: true
cloudfront-wait-for-service-update: false
13 changes: 6 additions & 7 deletions .github/workflows/deploy-cognito-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,9 @@ jobs:
# Invalidate Cloudfront (this action)
- name: invalidate
if: ((github.event_name == 'release') || (github.event_name == 'push' && contains(github.event.head_commit.message, '[deploy-demos]')))
uses: chetan/invalidate-cloudfront-action@master
env:
DISTRIBUTION: ${{ secrets.AWS_CLOUDFRONT_COGNITO_DEMO_DISTRIBUTION_ID }}
PATHS: "/*"
AWS_REGION: ${{ secrets.AWS_REGION_US }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
uses: chaitanyapotti/cloudfront-update-distribution@v2
with:
cloudfront-distribution-id: ${{ secrets.AWS_CLOUDFRONT_COGNITO_DEMO_DISTRIBUTION_ID }}
cloudfront-invalidation-path: "/*"
cloudfront-invalidation-required: true
cloudfront-wait-for-service-update: false
13 changes: 6 additions & 7 deletions .github/workflows/deploy-customui-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,9 @@ jobs:
# Invalidate Cloudfront (this action)
- name: invalidate
if: ((github.event_name == 'release') || (github.event_name == 'push' && contains(github.event.head_commit.message, '[deploy-demos]')))
uses: chetan/invalidate-cloudfront-action@master
env:
DISTRIBUTION: ${{ secrets.AWS_CLOUDFRONT_CORE_DEMO_DISTRIBUTION_ID }}
PATHS: "/*"
AWS_REGION: ${{ secrets.AWS_REGION_US }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
uses: chaitanyapotti/cloudfront-update-distribution@v2
with:
cloudfront-distribution-id: ${{ secrets.AWS_CLOUDFRONT_CORE_DEMO_DISTRIBUTION_ID }}
cloudfront-invalidation-path: "/*"
cloudfront-invalidation-required: true
cloudfront-wait-for-service-update: false
13 changes: 6 additions & 7 deletions .github/workflows/deploy-torus-plugin-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,9 @@ jobs:
# Invalidate Cloudfront (this action)
- name: invalidate
if: ((github.event_name == 'release') || (github.event_name == 'push' && contains(github.event.head_commit.message, '[deploy-demos]')))
uses: chetan/invalidate-cloudfront-action@master
env:
DISTRIBUTION: ${{ secrets.AWS_CLOUDFRONT_PLUGIN_DEMO_DISTRIBUTION_ID }}
PATHS: "/*"
AWS_REGION: ${{ secrets.AWS_REGION_US }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
uses: chaitanyapotti/cloudfront-update-distribution@v2
with:
cloudfront-distribution-id: ${{ secrets.AWS_CLOUDFRONT_PLUGIN_DEMO_DISTRIBUTION_ID }}
cloudfront-invalidation-path: "/*"
cloudfront-invalidation-required: true
cloudfront-wait-for-service-update: false

0 comments on commit 80122e1

Please sign in to comment.