]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
gh actions: modify docker.yml for building and pushing images daily (master)
authorromeroalx <alexis.romero@open-xchange.com>
Tue, 14 May 2024 15:40:11 +0000 (17:40 +0200)
committerromeroalx <alexis.romero@open-xchange.com>
Wed, 5 Jun 2024 12:55:05 +0000 (14:55 +0200)
.github/workflows/docker.yml

index 8ee78336f307ea04f21db820cdfd6c770f537198..63321ed0855d4f928540eb616eccf2025231b325 100644 (file)
@@ -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 }}