Skip to content

Commit

Permalink
fix : github actions 내 k8s 실행 로직 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
phjppo0918 committed Jan 18, 2023
1 parent 895e527 commit e475da6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
29 changes: 19 additions & 10 deletions .github/workflows/cd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,22 @@ jobs:
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
with:
args: get pods
- run: |
kubectl delete secret database-secret
kubectl create secret generic database-secret \
--from-literal=server=1234 \
--from-literal=server=1234 \
- run: |
kubectl delete svc myway-frontend
kubectl delete deploy myway-frontend
kubectl apply -k ./frontend
args: delete secret database-secret

- uses: actions-hub/kubectl@master
with:
args: create secret generic myway-database-secret \
--from-literal=server.url=1234 \
--from-literal=server.port=1234 \

- uses: actions-hub/kubectl@master
with:
args: delete svc myway-frontend

- uses: actions-hub/kubectl@master
with:
args: delete deploy myway-frontend

- uses: actions-hub/kubectl@master
with:
args: apply -k ./frontend
4 changes: 2 additions & 2 deletions back/src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ spring:
username: root
password: 1234
driver-class-name: com.mysql.cj.jdbc.Driver
jdbc-url: jdbc:mysql://localhost:3306/lupin_killer?serverTimezone=Asia/Seoul
jdbc-url: jdbc:mysql://localhost:3306/crew_ship?serverTimezone=Asia/Seoul
slave:
username: root
password: 1234
driver-class-name: com.mysql.cj.jdbc.Driver
jdbc-url: jdbc:mysql://localhost:3307/lupin_killer?serverTimezone=Asia/Seoul
jdbc-url: jdbc:mysql://localhost:3307/crew_ship?serverTimezone=Asia/Seoul
jpa:
show-sql: true
hibernate:
Expand Down

0 comments on commit e475da6

Please sign in to comment.