From 4adcdb2bf8f2871def14c924f7bad9e5ea67ca57 Mon Sep 17 00:00:00 2001 From: romeroalx Date: Mon, 20 Jan 2025 16:44:56 +0100 Subject: [PATCH] gh actions: allow build images without credentials (push:false) --- .github/workflows/build-docker-images.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-docker-images.yml b/.github/workflows/build-docker-images.yml index fddf8316db..9d26c86958 100644 --- a/.github/workflows/build-docker-images.yml +++ b/.github/workflows/build-docker-images.yml @@ -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 -- 2.47.2