]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
gh actions: build Docker images 10029/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 29 Jan 2021 21:28:16 +0000 (22:28 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 5 Feb 2021 13:59:19 +0000 (14:59 +0100)
.github/workflows/docker.yml [new file with mode: 0644]

diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
new file mode 100644 (file)
index 0000000..3cbc31d
--- /dev/null
@@ -0,0 +1,24 @@
+---
+name: 'Build Docker images'
+
+on:
+  push:
+  pull_request:
+  schedule:
+    - cron: '0 22 * * 3'
+
+jobs:
+  build:
+    name: docker build
+    # on a ubuntu-20.04 VM
+    runs-on: ubuntu-20.04
+    strategy:
+      matrix:
+        product: ['auth', 'recursor', 'dnsdist']
+    steps:
+      - uses: actions/checkout@v2.3.4
+        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 }} .