Skip to content

Commit

Permalink
chore: CI/CD 수정
Browse files Browse the repository at this point in the history
- 멀티 모듈 구성에 맞게 수정
- submodule 허용

resolve: #35
  • Loading branch information
BinarySstar committed Feb 17, 2025
1 parent f495eae commit f4e5d85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
submodules: true
token: ${{ secrets.TOKEN }}

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
Expand Down
11 changes: 0 additions & 11 deletions scripts/start_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,9 @@ DEPLOY_PATH="/home/ubuntu/spring_server/"

LOG_FILE="${DEPLOY_PATH}deploy.log"
ERROR_LOG_FILE="${DEPLOY_PATH}deploy_err.log"
GIT_SUBMODULE_PATH="${DEPLOY_PATH}api/src/main/resources/secrets/" # 실제 Git submodule 경로로 설정

echo ">>> 배포 스크립트 시작" >> $LOG_FILE

# Git submodule 업데이트
echo ">>> Git submodule 업데이트 시작" >> $LOG_FILE
cd $DEPLOY_PATH
git submodule update --init --recursive
if [ $? -ne 0 ]; then
echo ">>> Git submodule 업데이트 실패" >> $LOG_FILE
exit 1
fi
echo ">>> Git submodule 업데이트 완료" >> $LOG_FILE

# 빌드된 JAR 파일 경로 및 이름 (실행 가능한 JAR만 선택)
BUILD_JAR=$(ls ${DEPLOY_PATH}api/build/libs/*SNAPSHOT.jar | grep -v plain)
JAR_NAME=$(basename $BUILD_JAR)
Expand Down

0 comments on commit f4e5d85

Please sign in to comment.