This is an automated email from the ASF dual-hosted git repository.

more pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/knox.git


The following commit(s) were added to refs/heads/master by this push:
     new 4b7ae26f7 KNOX-3264 - Fix issues with docker workflow (#1162)
4b7ae26f7 is described below

commit 4b7ae26f7bd1b4b3ce5ff6ab81171b7204ddd7a4
Author: Sandeep MorĂ© <[email protected]>
AuthorDate: Fri Feb 27 07:01:46 2026 -0500

    KNOX-3264 - Fix issues with docker workflow (#1162)
---
 .github/workflows/docker-publish.yml | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/docker-publish.yml 
b/.github/workflows/docker-publish.yml
index 244a5b067..ab8047be0 100644
--- a/.github/workflows/docker-publish.yml
+++ b/.github/workflows/docker-publish.yml
@@ -37,6 +37,13 @@ jobs:
           distribution: 'temurin'
           cache: maven
 
+      - name: Login to Docker Hardened Images
+        uses: docker/login-action@v3
+        with:
+          registry: dhi.io
+          username: ${{ secrets.DOCKERHUB_USER }}
+          password: ${{ secrets.DOCKERHUB_TOKEN }}
+
       - name: Build with Maven
         run: |
           mvn -Dforbiddenapis.skip=true -Denforcer.skip 
-Dpmd.failOnViolation=false \
@@ -60,13 +67,6 @@ jobs:
           username: ${{ secrets.DOCKERHUB_USER }}
           password: ${{ secrets.DOCKERHUB_TOKEN }}
 
-      - name: Login to Docker Hardened Images
-        uses: docker/login-action@v3
-        with:
-          registry: dhi.io
-          username: ${{ secrets.DOCKERHUB_USER }}
-          password: ${{ secrets.DOCKERHUB_TOKEN }}
-
       - name: Docker metadata
         id: meta
         uses: docker/metadata-action@v5

Reply via email to