Skip to content

Commit

Permalink
Update maven_docker_image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed-ennahdi authored Nov 23, 2024
1 parent e515dee commit 22eed0b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/maven_docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ jobs:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B spring-boot:build-image --file pom.xml

- name: Create docker image and push to docker hub (latest version)
run: |
echo $RELEASE_VERSION
echo ${{ env.RELEASE_VERSION }}
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
docker tag ennahdi/objectmorph-app:env.RELEASE_VERSION ennahdi/objectmorph-app:env.RELEASE_VERSION
docker push ennahdi/objectmorph-app:env.RELEASE_VERSION

0 comments on commit 22eed0b

Please sign in to comment.