diff --git a/.github/workflows/gcp.yml b/.github/workflows/gcp.yml index 3207089..3ca913a 100644 --- a/.github/workflows/gcp.yml +++ b/.github/workflows/gcp.yml @@ -106,6 +106,9 @@ jobs: echo "Building and pushing Docker image for $SERVICE_NAME" if [ -d "$SERVICE_NAME" ]; then cd $SERVICE_NAME + if [ "$SERVICE_NAME" != "blogs-analyzer-ui" ]; then + mvn clean install -DskipTests + fi IMAGE_NAME=gcr.io/gen-lang-client-0999974873/$SERVICE_NAME:latest docker build -t $IMAGE_NAME . docker push $IMAGE_NAME diff --git a/blogs-analyzer/Dockerfile b/blogs-analyzer/Dockerfile index 00dda9b..7b35939 100644 --- a/blogs-analyzer/Dockerfile +++ b/blogs-analyzer/Dockerfile @@ -2,6 +2,6 @@ FROM openjdk:21-jdk-slim WORKDIR /opt -COPY /target/blogs-analyzer-1.0.0.jar . +COPY target/blogs-analyzer-1.0.0.jar . -CMD ["java","-jar", "./blogs-analyzer-1.0.0.jar"] \ No newline at end of file +CMD ["java", "-jar", "./blogs-analyzer-1.0.0.jar"]