From 5a860d4a3a079227805c5f09723c00ad50fb43f9 Mon Sep 17 00:00:00 2001 From: yeonjy Date: Fri, 19 Apr 2024 22:25:04 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20docker=20build=20=EB=B6=84=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gradle.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 14ba0b66..3c14cbed 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -63,13 +63,18 @@ jobs: ./gradlew clean build -x test # dockerfile을 통해 이미지를 빌드하고, 이를 docker repo로 push - - name: Docker build & push to docker repo + - name: Docker build & push CORE to docker repo + working-directory: ./backend/core run: | docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} - docker build -f ./backend/core/Dockerfile -t ${{ secrets.DOCKER_USERNAME }}/${{ secrets.CORE_DOCKER_REPO }} ./backend/core/ + docker build -f Dockerfile -t ${{ secrets.DOCKER_USERNAME }}/${{ secrets.CORE_DOCKER_REPO }} . docker push ${{ secrets.DOCKER_USERNAME }}/${{ secrets.CORE_DOCKER_REPO }} - - docker build -f ./backend/ai_response_processor/Dockerfile -t ${{ secrets.DOCKER_USERNAME }}/${{ secrets.AI_DOCKER_REPO }} ./backend/ai_response_processor/ + + - name: Docker build & push AI to docker repo + working-directory: ./backend/ai_response_processor + run: | + docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} + docker build -f Dockerfile -t ${{ secrets.DOCKER_USERNAME }}/${{ secretsAI_DOCKER_REPO }} . docker push ${{ secrets.DOCKER_USERNAME }}/${{ secrets.AI_DOCKER_REPO }} # # FastAPI를 빌드하고 푸시