From 52b91a21d4a519708785d52b3ab55071e65ef21c Mon Sep 17 00:00:00 2001 From: Mohamed ENNAHDI EL IDRISSI Date: Mon, 25 Nov 2024 18:12:32 +0000 Subject: [PATCH] Update maven_docker_image.yml --- .github/workflows/maven_docker_image.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven_docker_image.yml b/.github/workflows/maven_docker_image.yml index 59228cd..e01453a 100644 --- a/.github/workflows/maven_docker_image.yml +++ b/.github/workflows/maven_docker_image.yml @@ -6,7 +6,7 @@ # separate terms of service, privacy policy, and support # documentation. -name: Java CI with Maven +name: Java CI with Maven to create and publish Docker image on: workflow_run: @@ -30,7 +30,8 @@ jobs: - name: Create docker image and push to docker hub (latest version) run: | echo $RELEASE_VERSION - echo ${{ env.RELEASE_VERSION }} + echo ${{ env.RELEASE_VERSION }} + cd objectmorph-app mvn -B spring-boot:build-image --file pom.xml docker tag ennahdi/objectmorph-app:env.RELEASE_VERSION ennahdi/objectmorph-app docker push ennahdi/objectmorph-app