From a53b5c895bc0d449113e46965d4ab749dd7e2e57 Mon Sep 17 00:00:00 2001 From: jimin3263 Date: Thu, 18 Jul 2024 23:27:24 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=8F=84=EC=BB=A4=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EC=9C=84=EC=B9=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/api-deploy.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/api-deploy.yml b/.github/workflows/api-deploy.yml index 514fa50b..ae4a48cb 100644 --- a/.github/workflows/api-deploy.yml +++ b/.github/workflows/api-deploy.yml @@ -35,13 +35,23 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x ./gradlew + - name: Create config file + run: | + mkdir -p ./api/src/main/resources + echo "${{ secrets.APPLICATION_API_YML }}" > ./api/src/main/resources/application-api.yml + + - name: CORE모듈 YML 파일 생성 + run: | + mkdir -p ./core/src/main/resources + echo "${{ secrets.APPLICATION_CORE_YML }}" > ./core/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