]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
builder: support oraclelinux-8; verify build in GH Actions on push&PR
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 2 Feb 2021 12:57:03 +0000 (13:57 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 2 Feb 2021 12:57:03 +0000 (13:57 +0100)
.github/workflows/builder.yml
builder-support/dockerfiles/Dockerfile.target.oraclelinux-8 [new file with mode: 0644]

index b9c925d80fda71aee6842c497927c03b72d83993..c04f64cb8d4726107a8f781b0671205b0022db38 100644 (file)
@@ -18,6 +18,7 @@ jobs:
         os:
           - centos-7
           - ubuntu-bionic
+          - oraclelinux-8
     steps:
       - uses: actions/checkout@v2.3.4
         with:
diff --git a/builder-support/dockerfiles/Dockerfile.target.oraclelinux-8 b/builder-support/dockerfiles/Dockerfile.target.oraclelinux-8
new file mode 100644 (file)
index 0000000..308be16
--- /dev/null
@@ -0,0 +1,17 @@
+# First do the source builds
+@INCLUDE Dockerfile.target.sdist
+
+# This defines the distribution base layer
+# Put only the bare minimum of common commands here, without dev tools
+FROM oraclelinux:8 as dist-base
+ARG BUILDER_CACHE_BUSTER=
+RUN touch /var/lib/rpm/* && yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
+    dnf install -y 'dnf-command(config-manager)' && \
+    dnf config-manager --set-enabled ol8_codeready_builder
+
+# Do the actual rpm build
+@INCLUDE Dockerfile.rpmbuild
+
+# Do a test install and verify
+# Can be skipped with skiptests=1 in the environment
+# @EXEC [ "$skiptests" = "" ] && include Dockerfile.rpmtest