From caa6b081ef8c862c9ae4d9ff8e485fdcf3e844bf Mon Sep 17 00:00:00 2001 From: Matthew Horridge Date: Fri, 10 May 2024 12:43:11 -0700 Subject: [PATCH] Tweak to build. Just supply the username and password for dockerhub in the command args --- .github/workflows/pub-docker-hub.yaml | 4 ++-- pom.xml | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pub-docker-hub.yaml b/.github/workflows/pub-docker-hub.yaml index 71c11a2..42681e7 100644 --- a/.github/workflows/pub-docker-hub.yaml +++ b/.github/workflows/pub-docker-hub.yaml @@ -17,7 +17,7 @@ jobs: server-username: DOCKER_USERNAME server-password: DOCKER_PASSWORD - name: Publish package - run: mvn --batch-mode -Prelease dockerfile:push + run: mvn --batch-mode -Prelease -Ddockerfile.username=${{secrets.DOCKER_USERNAME}} -Ddockerfile.password=${{secrets.DOCKER_TOKEN}} dockerfile:push env: DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}} - DOCKER_TOKEN: ${{secrets.DOCKER_TOKEN}} + DOCKER_TOKEN: ${{secrets.DOCKER_TOKEN}} \ No newline at end of file diff --git a/pom.xml b/pom.xml index f9a2679..b44e3be 100644 --- a/pom.xml +++ b/pom.xml @@ -114,7 +114,6 @@ ${project.build.finalName}.jar - true