From: romeroalx Date: Mon, 20 Jan 2025 15:44:56 +0000 (+0100) Subject: gh actions: allow build images without credentials (push:false) X-Git-Tag: dnsdist-2.0.0-alpha1~148^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4adcdb2bf8f2871def14c924f7bad9e5ea67ca57;p=thirdparty%2Fpdns.git gh actions: allow build images without credentials (push:false) --- 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