From c85a037dc1a687e00cc107dfcd75a84bbabfeaf6 Mon Sep 17 00:00:00 2001 From: axwinachu Date: Wed, 8 Jul 2026 12:14:26 +0530 Subject: [PATCH 1/2] db migration error fix --- auth-service/Dockerfile | 2 ++ auth-service/src/main/resources/application.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/auth-service/Dockerfile b/auth-service/Dockerfile index 118a628..f538244 100644 --- a/auth-service/Dockerfile +++ b/auth-service/Dockerfile @@ -4,6 +4,8 @@ WORKDIR /app COPY target/*.jar app.jar +COPY database/migrations /app/database/migrations + EXPOSE 8082 ENTRYPOINT ["java", "-jar", "app.jar"] \ No newline at end of file diff --git a/auth-service/src/main/resources/application.yaml b/auth-service/src/main/resources/application.yaml index faafb3f..72edec2 100644 --- a/auth-service/src/main/resources/application.yaml +++ b/auth-service/src/main/resources/application.yaml @@ -24,6 +24,7 @@ spring: flyway: enabled: true baseline-on-migrate: true + locations: filesystem:/app/database/migrations mail: host: flowforge-mailpit From 724d25d60e7f2d3eec3b114dd55f4f19177a41ed Mon Sep 17 00:00:00 2001 From: axwinachu Date: Wed, 8 Jul 2026 12:21:33 +0530 Subject: [PATCH 2/2] fix docker path --- .github/workflows/auth-service.yml | 2 +- auth-service/Dockerfile | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auth-service.yml b/.github/workflows/auth-service.yml index f895306..e3075bd 100644 --- a/.github/workflows/auth-service.yml +++ b/.github/workflows/auth-service.yml @@ -51,7 +51,7 @@ jobs: - name: Build and Push Docker Image uses: docker/build-push-action@v6 with: - context: ./auth-service + context: . file: ./auth-service/Dockerfile push: true tags: ${{ steps.meta.outputs.tags }} diff --git a/auth-service/Dockerfile b/auth-service/Dockerfile index f538244..1693e41 100644 --- a/auth-service/Dockerfile +++ b/auth-service/Dockerfile @@ -2,10 +2,9 @@ FROM eclipse-temurin:21-jre WORKDIR /app -COPY target/*.jar app.jar - +COPY auth-service/target/*.jar app.jar COPY database/migrations /app/database/migrations EXPOSE 8082 -ENTRYPOINT ["java", "-jar", "app.jar"] \ No newline at end of file +ENTRYPOINT ["java","-jar","app.jar"] \ No newline at end of file