Skip to content

Commit

Permalink
chore: deploy 동작 별로 네임 분리 #81
Browse files Browse the repository at this point in the history
  • Loading branch information
PgmJun committed Sep 9, 2024
1 parent e2d95f0 commit a722d64
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/be-cd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
name: app-artifact
path: ~/app

- name: Deploy artifact file
- name: Setting Env with artifact file name
run: |
cd /home/ubuntu/app || { echo "Build directory not found"; exit 1; }
JAR_FILE=$(ls *.jar | head -n 1)
Expand All @@ -57,7 +57,9 @@ jobs:
echo "No JAR file found"
exit 1
fi
- name: Kill previous application
run: |
PID=$(lsof -t -i:8080)
if [ -n "$PID" ]; then
Expand All @@ -68,4 +70,5 @@ jobs:
echo "No process is running on port 8080"
fi
nohup java -Dspring.profiles.active=dev -Duser.timezone=Asia/Seoul -Dserver.port=8080 -jar "$JAR_FILE" &
- name: Run latest application
run: nohup java -Dspring.profiles.active=dev -Duser.timezone=Asia/Seoul -Dserver.port=8080 -jar "$JAR_FILE" &

0 comments on commit a722d64

Please sign in to comment.