Skip to content

Commit 6ebcee3

Browse files
committed
feat: NCP 버킷 저장 위치 설정
1 parent e8e8248 commit 6ebcee3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/deploy-fe.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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: |

0 commit comments

Comments
 (0)