Skip to content

Commit

Permalink
Merge pull request #124 from STUDIO-EYE/develop
Browse files Browse the repository at this point in the history
fix: git actions workflow 수정
  • Loading branch information
frombozztoang authored Sep 30, 2024
2 parents 0b7da7c + 333f53a commit a0c5fba
Show file tree
Hide file tree
Showing 50 changed files with 8 additions and 405 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
# 1. Checkout the code from the repository
# 1. Checkout the code from the repository (빌드 폴더는 무시됨)
- name: Checkout code
uses: actions/checkout@v3

Expand All @@ -28,6 +28,9 @@ jobs:
# 4. Build the project
- name: Build project
run: CI=false npm run build # 빌드 과정에서 환경 변수를 사용하여 빌드
env:
REACT_APP_GATEWAY_URL: ${{ secrets.REACT_APP_GATEWAY_URL }}
REACT_APP_PROMOTION_URL: ${{ secrets.REACT_APP_PROMOTION_URL }}

# 5. Create SSH key file from GitHub Secrets (Private key)
- name: Create SSH key file
Expand All @@ -38,13 +41,13 @@ jobs:
# 6. Transfer build files to EC2 via SCP
- name: Transfer build files to EC2
run: |
scp -o StrictHostKeyChecking=no -i id_rsa -r ./build ubuntu@${{ secrets.SERVER_HOST }}:/home/ubuntu/STUDIO-EYE-WEB-PROMOTION/build
scp -o StrictHostKeyChecking=no -i id_rsa -r ./build/* ubuntu@${{ secrets.SERVER_HOST }}:/home/ubuntu/STUDIO-EYE-WEB-PROMOTION/build/
# 7. Clean up SSH key file (for security purposes)
- name: Clean up SSH key
run: rm id_rsa # SSH 키를 삭제하여 보안 유지

# 8. Execute commands on EC2 to pull the latest code and restart NGINX
# 8. Execute commands on EC2 to update the code and restart NGINX
- name: Execute deploy script on EC2
uses: appleboy/ssh-action@master
with:
Expand All @@ -54,5 +57,5 @@ jobs:
port: 22
script: |
cd ~/STUDIO-EYE-WEB-PROMOTION
git pull origin develop # 소스 코드 최신 상태로 유지
sudo chmod -R 755 ./build # 권한 설정
sudo systemctl restart nginx # NGINX 재시작
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/coverage

# # production
# /build
/build

# misc
.DS_Store
Expand Down
46 changes: 0 additions & 46 deletions build/asset-manifest.json

This file was deleted.

Binary file removed build/favicon.png
Binary file not shown.
Binary file removed build/fonts/Pretendard-Bold.woff2
Binary file not shown.
Binary file removed build/fonts/Pretendard-Light.woff2
Binary file not shown.
Binary file removed build/fonts/Pretendard-Medium.woff2
Binary file not shown.
Binary file removed build/fonts/Pretendard-Regular.woff2
Binary file not shown.
Binary file removed build/fonts/Pretendard-SemiBold.woff2
Binary file not shown.
1 change: 0 additions & 1 deletion build/index.html

This file was deleted.

25 changes: 0 additions & 25 deletions build/manifest.json

This file was deleted.

3 changes: 0 additions & 3 deletions build/robots.txt

This file was deleted.

11 changes: 0 additions & 11 deletions build/static/css/main.60c3feea.css

This file was deleted.

1 change: 0 additions & 1 deletion build/static/css/main.60c3feea.css.map

This file was deleted.

3 changes: 0 additions & 3 deletions build/static/js/main.d099bdab.js

This file was deleted.

113 changes: 0 additions & 113 deletions build/static/js/main.d099bdab.js.LICENSE.txt

This file was deleted.

1 change: 0 additions & 1 deletion build/static/js/main.d099bdab.js.map

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file removed build/static/media/Mission.8f7d161f37b5f3aec2ad.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file removed build/static/media/circle.08740893a51c20d62d8d.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 0 additions & 4 deletions build/static/media/faq.f50e078823c399c6fc6b002d4de85c7b.svg

This file was deleted.

4 changes: 0 additions & 4 deletions build/static/media/home.a5a15404137c5a97fffcc3da3249c0bf.svg

This file was deleted.

16 changes: 0 additions & 16 deletions build/static/media/infoIcon.d157a35b448462e956ffea0322aaf4ff.svg

This file was deleted.

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions build/static/media/leftArrow.f33e23f2bcbfb282c3b83ba2a7d4e1c0.svg

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit a0c5fba

Please sign in to comment.