Skip to content

Commit

Permalink
feat: cicd test
Browse files Browse the repository at this point in the history
  • Loading branch information
birdieHyun committed Oct 25, 2023
1 parent da1c625 commit fb012b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/be-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Upbrella DEV CI

on:
push:
branches: [ "main" ]
branches: [ "fix/fix-deploy" ]

env:
WORKING_DIRECTORY: ./
Expand Down
1 change: 0 additions & 1 deletion appspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ permissions:
mode: 755
hooks:
AfterInstall:
# location은 프로젝트의 root경로를 기준
- location: deploy.sh
timeout: 60
runas: root
4 changes: 2 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
REPOSITORY=/opt/testapp
APP_NAME=upbrella-dev-deploy
APP_NAME=yonsei-golf-deploy
cd $REPOSITORY

JAR_NAME=$(ls $REPOSITORY/build/libs/ | grep '.jar' | tail -n 1)
Expand All @@ -18,4 +18,4 @@ else
fi
echo "> $JAR_PATH 배포"

java -jar Yonsei-Golf-Server-0.0.1-SNAPSHOT.jar > app.log 2>&1 &
java -jar $JAR_PATH > app.log 2>&1 &

0 comments on commit fb012b8

Please sign in to comment.