File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -49,22 +49,20 @@ jobs:
4949 AWS_SECRET_ACCESS_KEY : ${{ secrets.NCP_SECRET_KEY }}
5050 run : |
5151 # 1. 정적 자원 (JS, CSS, 이미지) - 1년 캐시 (index.html 제외)
52- aws s3 sync frontend/dist/ s3://${{ secrets.NCP_BUCKET }}/ \
52+ aws s3 sync frontend/dist/ s3://${{ secrets.NCP_BUCKET }}/{{ secrets.NCP_BUCKET_ROOT }} \
5353 --endpoint-url ${{ secrets.NCP_ENDPOINT }} \
5454 --exclude "index.html" \
5555 --delete \
5656 --acl public-read \
5757 --cache-control "max-age=31536000, immutable" \
58- --checksum-mode WHEN_REQUIRED
5958
6059 # 2. index.html - 캐시 없음 (항상 최신 버전 유지)
61- aws s3 sync frontend/dist/ s3://${{ secrets.NCP_BUCKET }}/ \
60+ aws s3 sync frontend/dist/ s3://${{ secrets.NCP_BUCKET }}/{{ secrets.NCP_BUCKET_ROOT }} \
6261 --endpoint-url ${{ secrets.NCP_ENDPOINT }} \
6362 --exclude "*" \
6463 --include "index.html" \
6564 --acl public-read \
6665 --cache-control "no-cache, no-store, must-revalidate" \
67- --checksum-mode WHEN_REQUIRED
6866
6967 - name : Deployment summary
7068 run : |
You can’t perform that action at this time.
0 commit comments