From 06b690fa64c6810b1164787b848774bc0cc55e0e Mon Sep 17 00:00:00 2001 From: Jimin Lim <50178026+jimin3263@users.noreply.github.com> Date: Fri, 19 Jul 2024 01:39:16 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20db=20=EC=97=B0=EA=B2=B0=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20(#25)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/api-deploy.yml | 14 ++++++++++++-- Dockerfile => entry/web/Dockerfile | 0 2 files changed, 12 insertions(+), 2 deletions(-) rename Dockerfile => entry/web/Dockerfile (100%) diff --git a/.github/workflows/api-deploy.yml b/.github/workflows/api-deploy.yml index 5e6c3f66..96691e25 100644 --- a/.github/workflows/api-deploy.yml +++ b/.github/workflows/api-deploy.yml @@ -3,7 +3,7 @@ name: api deploy on: push: branches: - - feat/#8 + - feature/db-config - main - develop @@ -35,13 +35,23 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x ./gradlew + - name: Create config file + run: | + mkdir -p ./adapters/out-persistence/src/main/resources + echo "${{ secrets.OUT_PERSISTENCE_YML }}" > ./adapters/out-persistence/src/main/resources/application-out-persistence.yml + mkdir -p ./adapters/out-web/src/main/resources + echo "${{ secrets.OUT_WEB_GOOGLE }}" | base64 --decode > ./adapters/out-web/src/main/resources/google-services.json + echo "${{ secrets.OUT_WEB_YML }}" > ./adapters/out-web/src/main/resources/application-out-web.yml + mkdir -p ./application/src/main/resources + echo "${{ secrets.APPLICATION_CORE }}" > ./application/src/main/resources/application-core.yml + - name: Build with Gradle run: ./gradlew :entry:web:build --no-daemon - name: Docker build and push run: | docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_TOKEN - docker build -t $DOCKERHUB_USERNAME/$DOCKERHUB_API_IMAGE:latest . + docker build -f entry/web/Dockerfile -t $DOCKERHUB_USERNAME/$DOCKERHUB_API_IMAGE:latest . docker push $DOCKERHUB_USERNAME/$DOCKERHUB_API_IMAGE:latest - name: Get Public IP diff --git a/Dockerfile b/entry/web/Dockerfile similarity index 100% rename from Dockerfile rename to entry/web/Dockerfile