From e475da6f835edba5e57d6d41f214c561821bf5bf Mon Sep 17 00:00:00 2001 From: Hyeonjun Park Date: Wed, 18 Jan 2023 15:47:29 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20github=20actions=20=EB=82=B4=20k8s=20?= =?UTF-8?q?=EC=8B=A4=ED=96=89=20=EB=A1=9C=EC=A7=81=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cd-dev.yml | 29 ++++++++++++------- back/src/main/resources/application-local.yml | 4 +-- 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/.github/workflows/cd-dev.yml b/.github/workflows/cd-dev.yml index 5ed54018..ad49cb98 100644 --- a/.github/workflows/cd-dev.yml +++ b/.github/workflows/cd-dev.yml @@ -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 \ No newline at end of file diff --git a/back/src/main/resources/application-local.yml b/back/src/main/resources/application-local.yml index d385d0c1..580fcc16 100644 --- a/back/src/main/resources/application-local.yml +++ b/back/src/main/resources/application-local.yml @@ -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: