Skip to content

Commit

Permalink
chore : cloudfront 캐시 무력화 #19
Browse files Browse the repository at this point in the history
- s3에 파일을 업로드후 cloudfront 캐시 무력화해서 바로 반영
  • Loading branch information
sheepdog13 committed Feb 1, 2024
1 parent 7e21fa4 commit d017dd5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/frontenddeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,12 @@ jobs:
--region ap-northeast-2 \
build s3://sheepdog13.blog \
--delete
- name: CloudFront 캐시 무력화 코드
uses: chetan/invalidate-cloudfront-action@v2
env:
DISTRIBUTION: ${{ secrets.AWS_CLOUDFRONT_ID}}
PATHS: "/*"
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
1 change: 1 addition & 0 deletions client/src/components/views/RegisterPage/RegisterPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function RegisterPage() {

return (
<Wapper>
<h1>cloudfront 캐시 무력화 확인</h1>
<common.Form onSubmit={handleSubmit(onSubmit)}>
<common.Title>Sign Up</common.Title>
<common.InputBox>
Expand Down

0 comments on commit d017dd5

Please sign in to comment.