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 2860f4f commit d7267ca
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,23 @@ jobs:
script: |
cd workspaces/1day1baek/back
git reset --hard HEAD
# git reset --hard HEAD
cur_git_branch=$(git branch --show-current)
if [ "$cur_git_branch" != "$BRANCH_NAME" ]; then
git switch deploy/33-BE_cd
fi
git pull origin deploy/33-BE_cd
# cur_git_branch=$(git branch --show-current)
# if [ "$cur_git_branch" != "$BRANCH_NAME" ]; then
# git switch deploy/33-BE_cd
# fi
# git pull origin deploy/33-BE_cd
server_process=$(ps -ef | grep OneDayOneBaek-0.0.1-SNAPSHOT.jar$ | grep java)
server_pid=(${server_process// / })
server_pid=${server_pid[1]}
# server_process=$(ps -ef | grep OneDayOneBaek-0.0.1-SNAPSHOT.jar$ | grep java)
# server_pid=(${server_process// / })
# server_pid=${server_pid[1]}
if [ -n "$server_pid" ]; then
echo "existed server pid : $server_pid"
# if [ -n "$server_pid" ]; then
# echo "existed server pid : $server_pid"
echo $REMOTE_SSH_PASSWORD | sudo -S kill -9 $server_pid
fi
# echo $REMOTE_SSH_PASSWORD | sudo -S kill -9 $server_pid
# fi
asdf list
Expand Down

0 comments on commit d7267ca

Please sign in to comment.