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"]