Skip to content

Commit

Permalink
updated deployment file
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuldeep-knoldus committed Jun 28, 2024
1 parent 2800d77 commit 93386f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions blogs-analyzer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
CMD ["java", "-jar", "./blogs-analyzer-1.0.0.jar"]

0 comments on commit 93386f9

Please sign in to comment.