Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
19f52e4
백엔드 세팅
dietken1 May 2, 2025
acfa33a
Merge pull request #2 from pirogramming/frontend
NamKyeongMin May 2, 2025
2626ddf
Create main.yml
Imggaggu May 2, 2025
342ceb3
Update main.yml
Imggaggu May 2, 2025
36c85b4
Update main.yml
Imggaggu May 2, 2025
0b39358
Create deploy.yml
Imggaggu May 2, 2025
f14cd3d
Update deploy.yml
Imggaggu May 2, 2025
3922102
Merge branch 'backend' of https://github.com/pirogramming/PiroCheck i…
dietken1 May 4, 2025
c628b9b
[feat] PostgreSQL 연결 및 application.yml, build.gradle 수정
l-wanderer01 May 4, 2025
289912a
Merge pull request #4 from pirogramming/backend_jh
l-wanderer01 May 4, 2025
bacaf3b
Setting
seonjuuu May 4, 2025
6d17b99
[feat] 로그인
seonjuuu May 5, 2025
2b7a333
구조 세팅
dietken1 May 5, 2025
efa1c55
Merge branch 'backend' of https://github.com/pirogramming/PiroCheck i…
dietken1 May 5, 2025
2eb868d
Merge pull request #10 from pirogramming/backend_sj
seonjuuu May 5, 2025
56f9aea
중간저장
dietken1 May 5, 2025
0df5861
Merge branch 'backend' of https://github.com/pirogramming/PiroCheck i…
dietken1 May 5, 2025
cbe7dfb
전체 로직 구성완료 (추가 보완할 사항 존재함)
dietken1 May 5, 2025
1d5fc2a
Merge pull request #13 from pirogramming/backend_wj
dietken1 May 5, 2025
ae8a943
[Feat] WeeklyListBlock component
Imggaggu May 6, 2025
ee2a87c
git commit -m"[Feat] add Daily Open Block component"
Imggaggu May 6, 2025
68d8553
[Fix] fix assignmnet card component(weekly&daily) css
Imggaggu May 7, 2025
d92e558
[Fix] App.jsx&main.jsx
Imggaggu May 7, 2025
e009e5d
Merge branch 'main' into frontend_sj
Imggaggu May 7, 2025
d8d0e3b
[Merge] frontend to frontend_sj
Imggaggu May 7, 2025
f760f93
[Fix] header component & home page title font
Imggaggu May 7, 2025
6fa40be
[Feat] add AssignmentInfoBlock component& create Assignment Check page
Imggaggu May 7, 2025
c686e53
[Merge] origin to local
Imggaggu May 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 99 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: Deploy Frontend & Backend

on:
push:
branches: [deploy]

jobs:
frontend:
name: Deploy Frontend to S3
runs-on: ubuntu-22.04

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '22'

- name: Install dependencies
run: |
cd frontend
npm ci

- name: Build frontend
run: |
cd frontend
npm run build

- name: Deploy to S3
uses: jakejarvis/s3-sync-action@master
with:
args: --delete
env:
AWS_S3_BUCKET: www.pirocheck.org
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SOURCE_DIR: frontend/dist

backend:
name: Deploy Backend to EC2
needs: frontend
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Build backend
run: |
cd backend
./gradlew build --no-daemon

- name: Restore PEM file
run: |
echo "${{ secrets.EC2_SSH_KEY }}" | base64 -d > pirocheck.pem
chmod 400 pirocheck.pem

- name: Copy JAR to EC2
run: |
scp -o StrictHostKeyChecking=no -i pirocheck.pem backend/build/libs/*.jar ubuntu@${{ secrets.EC2_HOST }}:/home/ubuntu/app.jar

- name: Restart Spring Boot on EC2
run: |
ssh -o StrictHostKeyChecking=no -i pirocheck.pem ubuntu@${{ secrets.EC2_HOST }} 'bash ~/restart.sh'


- name: Send Discord notification (Success)
if: success()
run: |
curl -H "Content-Type: application/json" \
-X POST \
-d '{
"embeds": [{
"title": "🚀 Deploy 성공!",
"description": "**Branch**: `${{ github.ref }}`\n**Commit**: `${{ github.sha }}`\n🟢 서비스가 정상적으로 배포되었습니다!",
"color": 65353
}]
}' ${{ secrets.DISCORD_WEBHOOK }}

- name: Send Discord notification (Failure)
if: failure()
run: |
curl -H "Content-Type: application/json" \
-X POST \
-d '{
"embeds": [{
"title": "❌ Deploy 실패!",
"description": "**Branch**: `${{ github.ref }}`\n**Commit**: `${{ github.sha }}`\n🔴 배포 중 오류가 발생했습니다. 로그를 확인하세요.",
"color": 16711680
}]
}' ${{ secrets.DISCORD_WEBHOOK }}
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Notify Discord on PR events

on:
pull_request:
types: [opened, closed, reopened]

jobs:
notify-discord:
runs-on: ubuntu-latest
steps:
- name: Determine PR event
id: msg
run: |
if [[ "${{ github.event.action }}" == "opened" ]]; then
echo "message= PR Opened: **${{ github.event.pull_request.title }}**" >> $GITHUB_OUTPUT
elif [[ "${{ github.event.action }}" == "reopened" ]]; then
echo "message= PR Reopened: **${{ github.event.pull_request.title }}**" >> $GITHUB_OUTPUT
elif [[ "${{ github.event.action }}" == "closed" && "${{ github.event.pull_request.merged }}" == "true" ]]; then
echo "message= PR Merged: **${{ github.event.pull_request.title }}**" >> $GITHUB_OUTPUT
else
echo "message= PR Closed without merge: **${{ github.event.pull_request.title }}**" >> $GITHUB_OUTPUT
fi

- name: Send Discord notification
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
run: |
curl -H "Content-Type: application/json" \
-X POST \
-d "{\"content\": \"${{ steps.msg.outputs.message }}\\n[PR #${{ github.event.pull_request.number }}](${{ github.event.pull_request.html_url }}) by @${{ github.actor }}\"}" \
"$DISCORD_WEBHOOK_URL"
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@
.DS_Store
*.log
.env
*.pem
*.pem
.idea/

8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

130 changes: 130 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/피로체크.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions backend/pirocheck/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/gradlew text eol=lf
*.bat text eol=crlf
*.jar binary
Loading
Loading