docker-pdns/.github/workflows/docker-image.yml

205 lines
6.9 KiB
YAML
Raw Normal View History

2021-10-05 19:53:01 +02:00
name: Docker Image CI
on:
push:
branches: [ master ]
jobs:
build-recursor-latest:
2021-10-05 19:53:01 +02:00
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
2023-12-19 14:41:18 +01:00
uses: actions/checkout@v4
- name: Set up QEMU
2023-12-19 14:41:18 +01:00
uses: docker/setup-qemu-action@v3
2021-10-05 19:53:01 +02:00
- name: Set up Docker Buildx
id: buildx
2023-12-19 14:41:18 +01:00
uses: docker/setup-buildx-action@v3
2021-10-05 19:53:01 +02:00
- name: Login to Docker Hub
2023-12-19 14:41:18 +01:00
uses: docker/login-action@v3
2021-10-05 19:53:01 +02:00
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push PDNS Recursor latest
id: docker_build_recursor_latest
2023-12-19 14:41:18 +01:00
uses: docker/build-push-action@v5
2021-10-05 19:53:01 +02:00
with:
context: ./pdns-recursor
2021-10-05 19:54:48 +02:00
file: ./pdns-recursor/Dockerfile
platforms: linux/amd64,linux/arm64
2021-10-05 19:53:01 +02:00
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-recursor:latest
- name: Image digest
run: echo ${{ steps.docker_build_recursor_latest.outputs.digest }}
build-recursor-alpine:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
2023-12-19 14:41:18 +01:00
uses: actions/checkout@v4
- name: Set up QEMU
2023-12-19 14:41:18 +01:00
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
id: buildx
2023-12-19 14:41:18 +01:00
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
2023-12-19 14:41:18 +01:00
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
2021-10-05 19:53:01 +02:00
- name: Build and push PDNS Recursor alpine
id: docker_build_recursor_alpine
2023-12-19 14:41:18 +01:00
uses: docker/build-push-action@v5
2021-10-05 19:53:01 +02:00
with:
context: ./pdns-recursor
2021-10-05 19:54:48 +02:00
file: ./pdns-recursor/Dockerfile.alpine
platforms: linux/amd64,linux/arm64
2021-10-05 19:53:01 +02:00
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-recursor:alpine
- name: Image digest
run: echo ${{ steps.docker_build_recursor_alpine.outputs.digest }}
2021-10-05 20:26:27 +02:00
2024-01-02 20:09:28 +01:00
build-pdns-mysql-latest:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
2023-12-19 14:41:18 +01:00
uses: actions/checkout@v4
- name: Set up QEMU
2023-12-19 14:41:18 +01:00
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
id: buildx
2023-12-19 14:41:18 +01:00
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
2023-12-19 14:41:18 +01:00
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
2024-01-02 20:09:28 +01:00
- name: Build and push PDNS mysql latest
id: docker_build_pdns_mysql_latest
2023-12-19 14:41:18 +01:00
uses: docker/build-push-action@v5
2021-10-05 20:26:27 +02:00
with:
2024-01-02 20:09:28 +01:00
context: ./pdns-mysql
file: ./pdns-mysql/Dockerfile
platforms: linux/amd64,linux/arm64
2021-10-05 20:26:27 +02:00
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-mysql:latest
2021-10-05 20:26:27 +02:00
- name: Image digest
2024-01-02 20:09:28 +01:00
run: echo ${{ steps.docker_build_pdns_mysql_latest.outputs.digest }}
2021-10-05 20:26:27 +02:00
2024-01-02 20:09:28 +01:00
build-pdns-mysql-alpine:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
2023-12-19 14:41:18 +01:00
uses: actions/checkout@v4
- name: Set up QEMU
2023-12-19 14:41:18 +01:00
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
id: buildx
2023-12-19 14:41:18 +01:00
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
2023-12-19 14:41:18 +01:00
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
2024-01-02 20:09:28 +01:00
- name: Build and push PDNS mysql alpine
id: docker_build_pdns_mysql_alpine
2023-12-19 14:41:18 +01:00
uses: docker/build-push-action@v5
2021-10-05 20:26:27 +02:00
with:
2024-01-02 20:09:28 +01:00
context: ./pdns-mysql
file: ./pdns-mysql/Dockerfile.alpine
platforms: linux/amd64,linux/arm64
2021-10-05 20:26:27 +02:00
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-mysql:alpine
2021-10-05 20:26:27 +02:00
- name: Image digest
2024-01-02 20:09:28 +01:00
run: echo ${{ steps.docker_build_pdns_mysql_alpine.outputs.digest }}
2021-10-05 20:26:27 +02:00
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:
- name: Check Out Repo
2023-12-19 14:41:18 +01:00
uses: actions/checkout@v4
2023-12-17 17:38:23 +01:00
- name: Set up QEMU
2023-12-19 14:41:18 +01:00
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
id: buildx
2023-12-19 14:41:18 +01:00
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
2023-12-19 14:41:18 +01:00
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push pdns admin
id: docker_build_pdns_admin
2023-12-19 14:41:18 +01:00
uses: docker/build-push-action@v5
2021-10-05 20:26:27 +02:00
with:
context: ./pdns-admin
file: ./pdns-admin/Dockerfile
2023-12-17 17:38:23 +01:00
platforms: linux/amd64,linux/arm64
2021-10-05 20:26:27 +02:00
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: |
${{ secrets.DOCKER_HUB_USERNAME }}/pdns-admin:latest
2021-10-05 20:26:27 +02:00
- name: Image digest
run: echo ${{ steps.docker_build_pdns_admin.outputs.digest }}