Skip to content

Commit

Permalink
feat(workflow): script build/libs_old 삭제 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
junhyeongkim2 committed Oct 14, 2024
1 parent 5ff9195 commit 48076b0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/start_application.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ for i in $(seq 1 $MAX_RETRIES); do
if curl -s "${HEALTH_CHECK_URL}${NEW_PORT}/actuator/health" | grep -q "UP"; then
echo "New version is healthy"
# 새 버전의 라이브러리를 메인 디렉토리로 이동

# libs_old 디렉토리가 존재하면 삭제
if [ -d "build/libs_old" ]; then
rm -rf build/libs_old
fi

mv build/libs build/libs_old
mv build/libs_new build/libs

Expand Down

0 comments on commit 48076b0

Please sign in to comment.