Skip to content

Commit

Permalink
main.yml cloudfront 캐시 제거 리전 추가
Browse files Browse the repository at this point in the history
lkhoony committed Aug 28, 2024
1 parent aa4bdd5 commit 6b46d77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -41,15 +41,15 @@ jobs:
run: |
aws s3 sync --region ap-northeast-2 dist s3://alignlab-client --delete
continue-on-error: true

- name: Invalidate CloudFront Cache
if: steps.deploy.outcome == 'success'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
CLOUDFRONT_DISTRIBUTION_ID: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}
run: |
aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/*"
aws cloudfront create-invalidation --region ap-northeast-2 --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/*"
- name: Discord notification - Success
if: steps.deploy.outcome == 'success'

0 comments on commit 6b46d77

Please sign in to comment.