diff --git a/Dockerfile b/Dockerfile index 9e2278e..fe12d3e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,7 +38,7 @@ WORKDIR /build COPY ./src src/ RUN --mount=type=bind,source=pom.xml,target=pom.xml \ --mount=type=cache,target=/root/.m2 \ - ./mvnw package -DskipTests && \ + ./mvnw package -DskipTests -Pgcp && \ mv target/$(./mvnw help:evaluate -Dexpression=project.artifactId -q -DforceStdout)-$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout).jar target/app.jar ################################################################################ diff --git a/compose.yaml b/compose.yaml index 4c60aeb..8eae23a 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,6 +1,6 @@ services: server: - image: olegselajev241/todo-demo-application + image: olegselajev241/todo-demo-application:latest ports: - 8080:8080 # depends_on: diff --git a/pom.xml b/pom.xml index a6b24b3..4be421c 100644 --- a/pom.xml +++ b/pom.xml @@ -40,15 +40,7 @@ runtime true - - com.google.cloud - spring-cloud-gcp-starter-sql-postgresql - - - org.postgresql - postgresql - runtime - + org.springframework.boot spring-boot-starter-test @@ -110,4 +102,29 @@ + + + + test + + true + + + + org.postgresql + postgresql + runtime + + + + + gcp + + + com.google.cloud + spring-cloud-gcp-starter-sql-postgresql + + + +