Skip to content

Commit

Permalink
fix: CD 스크립트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
donghoony committed Aug 7, 2024
1 parent 80d9431 commit 18ce9d4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/backend-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
env:
ARTIFACT_NAME: review-me-dev
ARTIFACT_DIRECTORY: ./backend/build/libs
APPLICATION_DIRECTORY: ~/review-me-app

jobs:
build:
Expand Down Expand Up @@ -66,6 +67,10 @@ jobs:
with:
name: ${{ env.ARTIFACT_NAME }}

- name: Copy application related files to other directory
run: |
sudo mv * ${{ env.APPLICATION_DIRECTORY }}
- name: Find ${{ env.ARTIFACT_NAME }} process
run: |
echo "Checking processes..."
Expand All @@ -90,4 +95,5 @@ jobs:
- name: Start server
run: |
cd ${{ env.APPLICATION_DIRECTORY }}
sudo nohup java -jar ${{ env.ARTIFACT_NAME }}.jar --server.port=80 --spring.config.location=application-dev.yml &

0 comments on commit 18ce9d4

Please sign in to comment.