Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What 176/cicd #28

Merged
merged 14 commits into from
Feb 18, 2024
4 changes: 3 additions & 1 deletion .github/workflows/cd-workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
docker build -f Dockerfile -t ghcr.io/onion-city/whatssue_be_v2/whatssue:latest .
docker push ghcr.io/onion-city/whatssue_be_v2/whatssue:latest


# 개발서버 SSH접속 및 배포
- name: Deploy
uses: appleboy/ssh-action@master
Expand All @@ -66,6 +67,7 @@ jobs:
sudo docker rmi ghcr.io/onion-city/whatssue_be_v2/whatssue
fi
sudo docker pull ghcr.io/onion-city/whatssue_be_v2/whatssue:latest
sudo docker stop $(docker ps -a -q)
sudo docker stop whatssue-be
sudo docker rm whatssue-be
sudo docker run -d -p 8080:8080 --name whatssue-be ghcr.io/onion-city/whatssue_be_v2/whatssue:latest
sudo docker image prune -a -f
1 change: 1 addition & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ spring:
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
hibernate:
dialect: org.hibernate.dialect.MySQL8Dialect
ddl-auto: create
loggin:
level:
Expand Down
Loading