From bb70a351b5d289a24fb85b0df4dbfc2455769891 Mon Sep 17 00:00:00 2001 From: Kimprodp Date: Wed, 25 Sep 2024 12:00:28 +0900 Subject: [PATCH] =?UTF-8?q?[BE]=20fix:=20CD=20=EC=8A=A4=ED=81=AC=EB=A6=BD?= =?UTF-8?q?=ED=8A=B8=20=EC=88=98=EC=A0=95=20(#688)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/backend-dev-cd.yml | 4 ++-- backend/Dockerfile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/backend-dev-cd.yml b/.github/workflows/backend-dev-cd.yml index 11952e963..cfba6a6b9 100644 --- a/.github/workflows/backend-dev-cd.yml +++ b/.github/workflows/backend-dev-cd.yml @@ -51,7 +51,7 @@ jobs: - name: Build and push uses: docker/build-push-action@v6 with: - context: . + context: ./backend platforms: linux/amd64,linux/arm64 push: true tags: ${{ secrets.DOCKERHUB_ID }}/review-me-app:latest @@ -82,7 +82,7 @@ jobs: - name: Pull from DockerHub run: | - sudo docker-compose down || true + sudo docker-compose -- env-file .env.dev down || true sudo docker pull ${{ secrets.DOCKERHUB_ID }}/review-me-app sudo docker-compose --env-file .env.dev up -d working-directory: ${{ env.APPLICATION_DIRECTORY }}/app diff --git a/backend/Dockerfile b/backend/Dockerfile index 01d958f8b..7ca531f1c 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,6 +1,6 @@ FROM amazoncorretto:17-alpine-jdk -ARG JAR_FILE=./backend/build/libs/backend-0.0.1-SNAPSHOT.jar +ARG JAR_FILE=./build/libs/backend-0.0.1-SNAPSHOT.jar COPY ${JAR_FILE} review-me-app.jar ENTRYPOINT ["java", "-jar", "/review-me-app.jar", "-Dspring.config.location=/application.yml"]