Skip to content

Commit

Permalink
TEST
Browse files Browse the repository at this point in the history
  • Loading branch information
gidskql6671 committed May 24, 2024
1 parent 56483e7 commit 1b43ddd
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,15 @@ jobs:
script: |
cd workspaces/1day1baek/back
echo 11111111111111111111111111111111111111111
git checkout -B $BRANCH_NAME
git pull origin $BRANCH_NAME
echo 2222222222222222222222222222222222
git reset --hard HEAD
git switch deploy/33-BE_cd
git pull
server_process=$(ps -ef | grep OneDayOneBaek-0.0.1-SNAPSHOT.jar$ | grep java)
echo 333333333333333333333333333333333
server_pid=(${server_process// / })
server_pid=${server_pid[1]}
if [ -n "$server_process" ]; then
server_pid=(${server_process// / })
server_pid=${server_pid[1]}
if [ -n "$server_pid" ]; then
echo "existed server pid : $server_pid"
echo $REMOTE_SSH_PASSWORD | sudo -S kill -9 $server_pid
Expand Down

0 comments on commit 1b43ddd

Please sign in to comment.