Skip to content

Commit

Permalink
Add pdns-pgsql, support pgsql in pdns-admin
Browse files Browse the repository at this point in the history
  • Loading branch information
pschiffe committed Jan 3, 2024
1 parent 84129e9 commit de28ddd
Show file tree
Hide file tree
Showing 21 changed files with 893 additions and 65 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ updates:
directory: "/pdns-mysql"
schedule:
interval: "monthly"
- package-ecosystem: "docker"
directory: "/pdns-pgsql"
schedule:
interval: "monthly"
- package-ecosystem: "docker"
directory: "/pdns-recursor"
schedule:
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/docker-image-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,46 @@ jobs:
- name: Image digest
run: echo ${{ steps.docker_build_pdns_mysql_alpine.outputs.digest }}

test-pdns-pgsql-latest:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Build PDNS pgsql latest
id: docker_build_pdns_pgsql_latest
uses: docker/build-push-action@v5
with:
context: ./pdns-pgsql
file: ./pdns-pgsql/Dockerfile
builder: ${{ steps.buildx.outputs.name }}
push: false
tags: pdns-pgsql:latest
- name: Image digest
run: echo ${{ steps.docker_build_pdns_pgsql_latest.outputs.digest }}

test-pdns-pgsql-alpine:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Build PDNS pgsql alpine
id: docker_build_pdns_pgsql_alpine
uses: docker/build-push-action@v5
with:
context: ./pdns-pgsql
file: ./pdns-pgsql/Dockerfile.alpine
builder: ${{ steps.buildx.outputs.name }}
push: false
tags: pdns-pgsql:alpine
- name: Image digest
run: echo ${{ steps.docker_build_pdns_pgsql_alpine.outputs.digest }}

test-pdns-admin:
runs-on: ubuntu-latest
steps:
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/docker-image-tag-pdns-admin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Docker Image CI pdns-admin

on:
push:
tags:
- 'pdns-admin-*'

jobs:

build:

runs-on: ubuntu-latest

steps:

- name: Check Out Repo
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Set output
id: vars
run: echo ::set-output name=version::${GITHUB_REF##*-}

- name: Build and push PDNS Admin
id: docker_build_pdns_admin
uses: docker/build-push-action@v5
with:
context: ./pdns-admin
file: ./pdns-admin/Dockerfile
platforms: linux/amd64,linux/arm64
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-admin:${{ steps.vars.outputs.version }}

- name: Image digest
run: echo ${{ steps.docker_build_pdns_admin.outputs.digest }}
2 changes: 1 addition & 1 deletion .github/workflows/docker-image-tag-pdns-mysql-alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Docker Image CI pdns-mysql alpine
on:
push:
tags:
- 'pdns-mysql-alpine-*'
- 'pdns-alpine-*'

jobs:

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-image-tag-pdns-mysql-fedora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Docker Image CI pdns-mysql fedora
on:
push:
tags:
- 'pdns-mysql-fedora-*'
- 'pdns-fedora-*'

jobs:

Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/docker-image-tag-pdns-pgsql-alpine.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Docker Image CI pdns-pgsql alpine

on:
push:
tags:
- 'pdns-alpine-*'

jobs:

build:

runs-on: ubuntu-latest

steps:

- name: Check Out Repo
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Set output
id: vars
run: echo ::set-output name=version::${GITHUB_REF##*-}

- name: Build and push PDNS pgsql
id: docker_build_pdns
uses: docker/build-push-action@v5
with:
context: ./pdns-pgsql
file: ./pdns-pgsql/Dockerfile.alpine
platforms: linux/amd64,linux/arm64
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-pgsql:${{ steps.vars.outputs.version }}-alpine

- name: Image digest
run: echo ${{ steps.docker_build_pdns.outputs.digest }}
48 changes: 48 additions & 0 deletions .github/workflows/docker-image-tag-pdns-pgsql-fedora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Docker Image CI pdns-pgsql fedora

on:
push:
tags:
- 'pdns-fedora-*'

jobs:

build:

runs-on: ubuntu-latest

steps:

- name: Check Out Repo
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Set output
id: vars
run: echo ::set-output name=version::${GITHUB_REF##*-}

- name: Build and push PDNS pgsql
id: docker_build_pdns
uses: docker/build-push-action@v5
with:
context: ./pdns-pgsql
file: ./pdns-pgsql/Dockerfile
platforms: linux/amd64,linux/arm64
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-pgsql:${{ steps.vars.outputs.version }}

- name: Image digest
run: echo ${{ steps.docker_build_pdns.outputs.digest }}
56 changes: 56 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,62 @@ jobs:
- name: Image digest
run: echo ${{ steps.docker_build_pdns_mysql_alpine.outputs.digest }}

build-pdns-pgsql-latest:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push PDNS pgsql latest
id: docker_build_pdns_pgsql_latest
uses: docker/build-push-action@v5
with:
context: ./pdns-pgsql
file: ./pdns-pgsql/Dockerfile
platforms: linux/amd64,linux/arm64
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-pgsql:latest
- name: Image digest
run: echo ${{ steps.docker_build_pdns_pgsql_latest.outputs.digest }}

build-pdns-pgsql-alpine:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push PDNS pgsql alpine
id: docker_build_pdns_pgsql_alpine
uses: docker/build-push-action@v5
with:
context: ./pdns-pgsql
file: ./pdns-pgsql/Dockerfile.alpine
platforms: linux/amd64,linux/arm64
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-pgsql:alpine
- name: Image digest
run: echo ${{ steps.docker_build_pdns_pgsql_alpine.outputs.digest }}

build-pdns-admin:
runs-on: ubuntu-latest
steps:
Expand Down
Loading

0 comments on commit de28ddd

Please sign in to comment.