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 118a628..1693e41 100644 --- a/auth-service/Dockerfile +++ b/auth-service/Dockerfile @@ -2,8 +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 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