diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index d570639..d5faf4c 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -39,4 +39,6 @@ jobs: env: GITHUB_ACTOR: ${{ github.actor }} GITHUB_TOKEN: ${{ secrets.GH_PAT }} - run: ./mvnw -B package deploy --file pom.xml + DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} + DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} + run: ./mvnw -B -Dpackaging=docker package deploy --file pom.xml diff --git a/pom.xml b/pom.xml index ef6d621..eb050ed 100644 --- a/pom.xml +++ b/pom.xml @@ -247,6 +247,19 @@ + + com.google.cloud.tools + jib-maven-plugin + + + docker.io/krickert/${project.name}:${project.version} + + ${env.DOCKER_USERNAME} + ${env.DOCKER_PASSWORD} + + + +