Skip to content

Commit

Permalink
refactor: s3 업로드 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
shackstack committed Apr 7, 2024
1 parent 526c72a commit 2c2a84e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
command: yarn cy:run
browser: chrome

- name: ✨ 생성된 비디오를 S3에서 저장
- name: 테스트에 실패한 경우 생성된 비디오를 S3에서 저장
if: always()
env:
SOURCE_DIR: '/home/runner/work/2023-celuveat/2023-celuveat/frontend/cypress/videos'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/frontend-prod-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
BASE_URL: ${{secrets.PROD_BASE_URL}}
GOOGLE_MAP_API_KEY: ${{secrets.GOOGLE_MAP_API_KEY}}
SHARE_KAKAO_LINK_KEY: ${{secrets.SHARE_KAKAO_LINK_KEY}}

- name: ✨ 의존성 설치
run: yarn install

Expand All @@ -48,5 +48,5 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_S3_BUCKET_URI: ${{ secrets.AWS_S3_BUCKET_URI }}
run: |
aws s3 rm $AWS_S3_BUCKET_URI --recursive --exclude 'images-data/*' --exclude 'review/*' --exclude "*.jpeg" --exclude "event/*"
aws s3 rm $AWS_S3_BUCKET_URI --recursive --exclude 'images-data/*' --exclude 'review/*' --exclude "*.jpeg" --exclude "event/*" --exclude "e2e/*"
aws s3 sync $SOURCE_DIR $AWS_S3_BUCKET_URI

0 comments on commit 2c2a84e

Please sign in to comment.