From 21d99969c0bc905d9fc499dfb9f0cd25861d6e90 Mon Sep 17 00:00:00 2001 From: yooonwodyd Date: Fri, 22 Dec 2023 16:20:56 +0900 Subject: [PATCH] =?UTF-8?q?yml=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-image.yml | 2 +- src/main/resources/application-rds.yaml | 16 +--------------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index d9af25f..3d974fe 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -35,7 +35,7 @@ jobs: - name: Docker build & push if: contains(github.ref, 'develop') run: | - docker login -u yooonwodyd00 -p dbswodyd91 + docker login -u yooonwodyd00 -p ${{ secrets.DOCKER_PASSWORD }} docker build -f Dockerfile -t yooonwodyd00/happynewhere_be-app . docker push yooonwodyd00/happynewhere_be-app ## deploy to develop diff --git a/src/main/resources/application-rds.yaml b/src/main/resources/application-rds.yaml index f3bb26e..6b56643 100644 --- a/src/main/resources/application-rds.yaml +++ b/src/main/resources/application-rds.yaml @@ -1,22 +1,8 @@ -#spring: -# datasource: -# url: jdbc:mariadb://database-1.ctw2wa3jmufy.ap-northeast-2.rds.amazonaws.com:3306/happynew -# driver-class-name: org.mariadb.jdbc.Driver -# username: admin -# password: dbswodyd91 - -#spring: -# datasource: -# url: jdbc:mariadb://localhost:3306/chris -# driver-class-name: org.mariadb.jdbc.Driver -# username: root -# password: root -# spring: config: import: "classpath:env.yml" datasource: - url: jdbc:mariadb://happy-new-year.cp3aplx9qafk.ap-northeast-2.rds.amazonaws.com/happy_new_year + url: {RDS_URL} driver-class-name: org.mariadb.jdbc.Driver username: ${RDS_USERNAME} password: ${RDS_PASSWORD}