Skip to content

Commit

Permalink
Merge pull request #15073 from romeroalx/allow-docker-build-no-creds
Browse files Browse the repository at this point in the history
GH Actions - build-docker-images.yaml: allow testing image building without credentials
  • Loading branch information
romeroalx authored Jan 22, 2025
2 parents f972365 + 3b47c44 commit 3de14d7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile-auth
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ ADD configure.ac Makefile.am /source/
COPY builder/helpers/set-configure-ac-version.sh /usr/local/bin

ARG MAKEFLAGS=
ENV MAKEFLAGS ${MAKEFLAGS:--j2}
ENV MAKEFLAGS=${MAKEFLAGS:--j2}

ARG DOCKER_FAKE_RELEASE=NO
ENV DOCKER_FAKE_RELEASE ${DOCKER_FAKE_RELEASE}
ENV DOCKER_FAKE_RELEASE=${DOCKER_FAKE_RELEASE}

RUN if [ "${DOCKER_FAKE_RELEASE}" = "YES" ]; then \
BUILDER_VERSION="$(IS_RELEASE=YES BUILDER_MODULES=authoritative ./builder-support/gen-version | sed 's/\([0-9]\+\.[0-9]\+\.[0-9]\+\(\(alpha|beta|rc\)\d\+\)\)?.*/\1/')" set-configure-ac-version.sh;\
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile-dnsdist
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ COPY .git /source/.git
WORKDIR /source/pdns/dnsdistdist

ARG MAKEFLAGS=
ENV MAKEFLAGS ${MAKEFLAGS:--j2}
ENV MAKEFLAGS=${MAKEFLAGS:--j2}

ARG DOCKER_FAKE_RELEASE=NO
ENV DOCKER_FAKE_RELEASE ${DOCKER_FAKE_RELEASE}
ENV DOCKER_FAKE_RELEASE=${DOCKER_FAKE_RELEASE}

RUN touch dnsdist.1 # avoid having to install pandoc and venv

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile-recursor
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ RUN cd /source/ && ./install_rust.sh
WORKDIR /source/pdns/recursordist

ARG MAKEFLAGS=
ENV MAKEFLAGS ${MAKEFLAGS:--j2}
ENV MAKEFLAGS=${MAKEFLAGS:--j2}

ARG DOCKER_FAKE_RELEASE=NO
ENV DOCKER_FAKE_RELEASE ${DOCKER_FAKE_RELEASE}
ENV DOCKER_FAKE_RELEASE=${DOCKER_FAKE_RELEASE}

# Manpage deps
# RUN apt-get install -y python3-venv && apt-get clean
Expand Down

0 comments on commit 3de14d7

Please sign in to comment.