Skip to content

Commit

Permalink
ci: CI/CD 구축중
Browse files Browse the repository at this point in the history
  • Loading branch information
CEO-Nick committed Apr 5, 2024
1 parent 0b6ecdd commit c891e6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ jobs:
with:
name: linkeepServer
path: build/libs/

- name: EC2 Deploy
env:
EC2_SSH_PRIVATE_KEY: ${{ secrets.EC2_SSH_PRIVATE_KEY }}
Expand All @@ -72,7 +71,8 @@ jobs:
# 인스턴스에서 JAR 파일 실행
ssh -i ec2_ssh_key -o StrictHostKeyChecking=no ${EC2_USER}@${EC2_HOST} "pgrep java | xargs kill -9; nohup java -jar /home/${EC2_USER}/linkeep-server/linkeep-server-0.0.1-SNAPSHOT.jar > /home/${EC2_USER}/linkeep-server/log/app.log 2>&1 &"
# java -jar /home/${EC2_USER}/linkeep-server/linkeepServer-0.0.1-SNAPSHOT.jar
EOF
# java -jar /home/${EC2_USER}/linkeep-server/linkeepServer-0.0.1-SNAPSHOT.jar
# # EC2 인스턴스에서 배포 스크립트 실행
# ssh -i ec2_ssh_key -o StrictHostKeyChecking=no ${EC2_USER}@${EC2_HOST} "cd /home/${EC2_USER}/linkeep-server && ./deploy_script.sh"

0 comments on commit c891e6a

Please sign in to comment.