Skip to content

Commit

Permalink
chore: aws와 동기화하기 전 EC2 인스턴스의 이전 파일들을 삭제하는 스텝 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hwinkr committed Oct 16, 2024
1 parent 9e4b160 commit e1e2d82
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/frontend-dev-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,17 @@ jobs:
env:
CLOUDFRONT_DISTRIBUTION_ID_DEV: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID_DEV}}
steps:
- name: 기존 dist 폴더 내부에 있던 이전 버젼의 dist 폴더 내부 모든 파일을 삭제해요
working-directory: ./frontend/
run: |
rm -rf dist/*
- name: 모모 깃허브 레파지토리 artifacts로 부터 빌드 결과물을 다운받아요 :)
uses: actions/download-artifact@v4
with:
name: momoResources
path: ./frontend/dist

- name: aws에 배포하고 cloudfront 캐싱을 무효화해요
working-directory: ./frontend/dist/
run: |
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/frontend-prod-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,17 @@ jobs:
env:
CLOUDFRONT_DISTRIBUTION_ID_PROD: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID_PROD}}
steps:
- name: 기존 dist 폴더 내부에 있던 이전 버젼의 dist 폴더 내부 모든 파일을 삭제해요
working-directory: ./frontend/
run: |
rm -rf dist/*
- name: 모모 깃허브 레파지토리 artifacts로 부터 빌드 결과물을 다운받아요 :)
uses: actions/download-artifact@v4
with:
name: momoResources
path: ./frontend/dist

- name: aws에 배포하고 cloudfront 캐싱을 무효화해요
working-directory: ./frontend/dist/
run: |
Expand Down

0 comments on commit e1e2d82

Please sign in to comment.