]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
gh actions: allow build images without credentials (push:false)
authorromeroalx <alexis.romero@open-xchange.com>
Mon, 20 Jan 2025 15:44:56 +0000 (16:44 +0100)
committerromeroalx <alexis.romero@open-xchange.com>
Mon, 20 Jan 2025 15:44:56 +0000 (16:44 +0100)
.github/workflows/build-docker-images.yml

index fddf8316db8f8eae1b2b782183e059d771558397..9d26c86958458c5bc1876ef6b45e3a1628fd7af1 100644 (file)
@@ -86,6 +86,7 @@ jobs:
         with:
           platforms: ${{ inputs.platforms }}
       - name: Login to Docker Hub
+        if: ${{ inputs.push }}
         uses: docker/login-action@v3
         with:
           username: ${{ secrets.DOCKERHUB_USERNAME }}
@@ -94,7 +95,7 @@ jobs:
         id: meta
         uses: docker/metadata-action@v5
         with:
-          images: ${{ secrets.DOCKERHUB_ORGANIZATION_NAME }}/${{ inputs.image-name }}
+          images: ${{ secrets.DOCKERHUB_ORGANIZATION_NAME || 'powerdns' }}/${{ inputs.image-name }}
           tags: ${{ inputs.image-tags }}
       - name: Build and load powerdns product images
         id: build-image