From e17b62fdd0444b28c9be5fc0ab5b4888508ded62 Mon Sep 17 00:00:00 2001 From: krickert Date: Sat, 17 Aug 2024 21:13:43 -0400 Subject: [PATCH] Adding docker push to all the images to automatically add everything to docker.io for each build. --- .github/workflows/maven.yml | 4 +++- pom.xml | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) 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} + + + +