From: romeroalx Date: Tue, 14 May 2024 15:40:11 +0000 (+0200) Subject: gh actions: modify docker.yml for building and pushing images daily (master) X-Git-Tag: auth-4.9.2~18^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ceca25aee7361670f393ba1e6f6314d23f1a875;p=thirdparty%2Fpdns.git gh actions: modify docker.yml for building and pushing images daily (master) --- diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 8ee78336f3..63321ed085 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -7,20 +7,22 @@ on: permissions: # least privileges, see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions contents: read + actions: read jobs: - build: - name: docker build + call-build-image-auth: + uses: PowerDNS/pdns/.github/workflows/build-docker-images.yml@rel/auth-4.9.x if: ${{ vars.SCHEDULED_DOCKER }} - # on a ubuntu-20.04 VM - runs-on: ubuntu-20.04 - strategy: - matrix: - product: ['auth'] - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 5 - submodules: recursive - # this builds packages and runs our unit test (make check) - - run: docker build --rm -t powerdns-${{ matrix.product }} -f Dockerfile-${{ matrix.product }} . + with: + product: auth + ref: ${{ github.ref_name }} + image-name: pdns-auth-4.9.x + image-tags: |- + latest + image-description: 'EXPERIMENTAL pdns auth image' + platforms: linux/amd64,linux/arm64/v8 + push: false + secrets: + DOCKERHUB_ORGANIZATION_NAME: ${{ secrets.DOCKERHUB_ORGANIZATION_NAME }} + DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} + DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}