-
Notifications
You must be signed in to change notification settings - Fork 0
version 2.16.0 #317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
version 2.16.0 #317
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
0762d72
Feat: 컴퓨터공학부 대학원 공지 Scrap 추가 (#291)
jiyun921 ed1721d
Feat/cors setting
zbqmgldjfh 054e092
Feat: 유저 학사일정 알림 설정 관련 기본 설정 추가 (#302)
rlagkswn00 675e8a1
Feat: 학사일정 알림 설정 API 추가 (#303)
rlagkswn00 34a700a
Merge branch 'main' into develop
rlagkswn00 656d52b
fix: 교직원 스크랩 DTO변환간 중복 Key 문제 해결
rlagkswn00 61244aa
fix: 불필요 로깅 삭제
rlagkswn00 ebae030
fix: 불필요 주석 삭제
rlagkswn00 afe4b04
Feat: 학사일정 알림 스케쥴링 로직 추가 (#305)
rlagkswn00 bbfd2e6
Fix: 학과 공지 업데이트 오류 수정, 학과 목록 조회 api 수정 (#310)
jiyun921 f910b06
Feat: OCI 환경 CI/CD배포 파이프라인 추가 (#311)
rlagkswn00 9bb94a9
fix: dev 환경 ci/cd workflow 수정(decrpt 추가 및 sh 명령어 수정) (#312)
rlagkswn00 9e9e8a2
feat: decrpt secrets 실행 시 env 추가 (#313)
rlagkswn00 485d77a
Feat: 학사일정 카테고리 및 알림 전송 분류 추가 (#308)
rlagkswn00 2a5e030
Feat: 어드민 기능- 전체 사용자 토픽 구독 API 추가 (#314)
rlagkswn00 871565d
Fix: 학사일정 알림 및 업데이트 시간 수정 (#315)
rlagkswn00 f2bfeb3
Feat: 대학원 스크랩 Feature Flag 적용 (#316)
rlagkswn00 beb2476
Merge branch 'main' into develop
rlagkswn00 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,54 +1,71 @@ | ||
| # This is a basic workflow to help you get started with Actions | ||
| name: Deploy to OCI (Develop) | ||
|
|
||
| name: Deploy to develop | ||
|
|
||
| # Controls when the workflow will run | ||
| on: | ||
| # Triggers the workflow on push or pull request events but only for the master branch | ||
| push: | ||
| branches: [ develop ] | ||
|
|
||
| # A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
| jobs: | ||
| # This workflow contains a single job called "build" | ||
| build: | ||
| # The type of runner that the job will run on | ||
| deploy: | ||
| name: Build & Deploy to OCI (Dev) | ||
| runs-on: ubuntu-latest | ||
| environment: Test-Server | ||
|
|
||
| # Steps represent a sequence of tasks that will be executed as part of the job | ||
| steps: | ||
| # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
| - uses: actions/checkout@v2 | ||
| # (1) 코드 체크아웃 | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v3 | ||
|
|
||
| # (2) JDK 17 설치 | ||
| - name: Set up JDK 17 | ||
| uses: actions/setup-java@v3 | ||
| with: | ||
| distribution: 'temurin' | ||
| java-version: '17' | ||
|
|
||
| # (3) firebase secret decrypt | ||
| - name: Decrypt Secrets | ||
| env: | ||
| GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
| run: | | ||
| sh .github/workflows/decrypt.sh | ||
|
|
||
| - name: Ready to deploy | ||
| # (4) Gradle 빌드 | ||
| - name: Build project | ||
| run: | | ||
| rm .gitignore | ||
| git config user.email "[email protected]" | ||
| git config user.name "ngwoon" | ||
| git add . | ||
| git commit -m "Build Ready" | ||
| ./gradlew clean build -x test | ||
|
|
||
| - name: Install Heroku CLI | ||
| run: | | ||
| curl https://cli-assets.heroku.com/install.sh | sh | ||
| # (5) 빌드 결과 확인 | ||
| - name: Verify JAR | ||
| run: ls -al build/libs | ||
|
|
||
| - name: Deploy to Heroku | ||
| # You may pin to the exact commit or the version. | ||
| # uses: AkhileshNS/heroku-deploy@79ef2ae4ff9b897010907016b268fd0f88561820 | ||
| uses: AkhileshNS/[email protected] | ||
| # (6) OCI 서버로 JAR 파일 전송 | ||
| - name: Upload to OCI | ||
| uses: appleboy/[email protected] | ||
| with: | ||
| # This will be used for authentication. You can find it in your heroku homepage account settings | ||
| heroku_api_key: ${{ secrets.HEROKU_API_KEY }} | ||
| # Email that you use with heroku | ||
| heroku_email: ${{ secrets.HEROKU_EMAIL }} | ||
| # The appname to use for deploying/updating | ||
| heroku_app_name: ${{ secrets.HEROKU_APP_NAME }} | ||
| env: | ||
| HD_DEPLOY_ENV: "dev" | ||
| host: ${{ secrets.OCI_DEV_HOST }} | ||
| username: ubuntu | ||
| key: ${{ secrets.OCI_DEV_SSH_KEY }} | ||
| source: "build/libs/*.jar" | ||
| target: "/home/ubuntu/dev-app" | ||
|
|
||
| # (7) SSH 접속 → 기존 프로세스 중지 → 새 버전 실행 | ||
| - name: Restart Dev Application | ||
| uses: appleboy/[email protected] | ||
| with: | ||
| host: ${{ secrets.OCI_DEV_HOST }} | ||
| username: ubuntu | ||
| key: ${{ secrets.OCI_DEV_SSH_KEY }} | ||
| script: | | ||
| echo "[1] 현재 실행중인 개발 서버 종료 중..." | ||
| PID=$(ps -ef | grep 'kuring-.*\.jar' | grep -v grep | awk '{print $2}') | ||
| if [ -n "$PID" ]; then | ||
| echo "기존 프로세스 종료: $PID" | ||
| kill -9 $PID | ||
| else | ||
| echo "기존 Java 프로세스 없음" | ||
| fi | ||
|
|
||
| echo "[2] 새 JAR 실행" | ||
| cd /home/ubuntu/dev-app | ||
| JAR_FILE=$(ls -t build/libs/*.jar | grep -m1 -v 'plain') | ||
| nohup java -jar "$JAR_FILE" --spring.profiles.active=dev > /home/ubuntu/dev-app.log 2>&1 & | ||
| echo "✅ 개발 서버 재시작 완료!" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GitHub Actions 최신 런타임에 맞게 액션 버전 업데이트 필요
actions/checkout@v3와actions/setup-java@v3는 Node 16 런타임에 의존하는 구버전이라 현재 GitHub 호스티드 러너에서 실행 즉시 실패합니다(actionlint에서도 동일하게 지적됨). 배포 파이프라인이 막히지 않도록 v4로 올려 주세요.📝 Committable suggestion
🧰 Tools
🪛 actionlint (1.7.7)
15-15: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
19-19: the runner of "actions/setup-java@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
🤖 Prompt for AI Agents