Skip to content

Commit caa6b08

Browse files
Tweak to build. Just supply the username and password for dockerhub in the command args
1 parent 6ba8def commit caa6b08

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/pub-docker-hub.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
server-username: DOCKER_USERNAME
1818
server-password: DOCKER_PASSWORD
1919
- name: Publish package
20-
run: mvn --batch-mode -Prelease dockerfile:push
20+
run: mvn --batch-mode -Prelease -Ddockerfile.username=${{secrets.DOCKER_USERNAME}} -Ddockerfile.password=${{secrets.DOCKER_TOKEN}} dockerfile:push
2121
env:
2222
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
23-
DOCKER_TOKEN: ${{secrets.DOCKER_TOKEN}}
23+
DOCKER_TOKEN: ${{secrets.DOCKER_TOKEN}}

pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@
114114
<buildArgs>
115115
<JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
116116
</buildArgs>
117-
<useMavenSettingsForAuth>true</useMavenSettingsForAuth>
118117
</configuration>
119118
</plugin>
120119
</plugins>

0 commit comments

Comments
 (0)