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

109 lines
3.3 KiB
YAML
Raw Normal View History

2021-10-05 22:07:13 +02:00
name: Docker Image CI for PRs
2021-10-05 21:38:51 +02:00
on:
pull_request:
branches: [ master ]
jobs:
2023-02-24 22:23:07 +01:00
test-recursor-latest:
2021-10-05 21:38:51 +02:00
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
2023-12-19 14:41:18 +01:00
uses: actions/checkout@v4
2021-10-05 21:38:51 +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 21:38:51 +02:00
- name: Build 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 21:38:51 +02:00
with:
context: ./pdns-recursor
file: ./pdns-recursor/Dockerfile
builder: ${{ steps.buildx.outputs.name }}
push: false
tags: pdns-recursor:latest
2021-10-05 21:38:51 +02:00
- name: Image digest
run: echo ${{ steps.docker_build_recursor_latest.outputs.digest }}
2023-02-24 22:23:07 +01:00
test-recursor-alpine:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
2023-12-19 14:41:18 +01:00
uses: actions/checkout@v4
2023-02-24 22:23:07 +01: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 21:38:51 +02:00
- name: Build 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 21:38:51 +02:00
with:
context: ./pdns-recursor
file: ./pdns-recursor/Dockerfile.alpine
builder: ${{ steps.buildx.outputs.name }}
push: false
tags: pdns-recursor:alpine
2021-10-05 21:38:51 +02:00
- name: Image digest
run: echo ${{ steps.docker_build_recursor_alpine.outputs.digest }}
2024-01-02 20:09:28 +01:00
test-pdns-mysql-latest:
2023-02-24 22:23:07 +01:00
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
2023-12-19 14:41:18 +01:00
uses: actions/checkout@v4
2023-02-24 22:23:07 +01:00
- name: Set up Docker Buildx
id: buildx
2023-12-19 14:41:18 +01:00
uses: docker/setup-buildx-action@v3
2024-01-02 20:09:28 +01:00
- name: Build 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 21:38:51 +02:00
with:
2024-01-02 20:09:28 +01:00
context: ./pdns-mysql
file: ./pdns-mysql/Dockerfile
2021-10-05 21:38:51 +02:00
builder: ${{ steps.buildx.outputs.name }}
push: false
tags: pdns-mysql:latest
2021-10-05 21:38:51 +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 21:38:51 +02:00
2024-01-02 20:09:28 +01:00
test-pdns-mysql-alpine:
2023-02-24 22:23:07 +01:00
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
2023-12-19 14:41:18 +01:00
uses: actions/checkout@v4
2023-02-24 22:23:07 +01:00
- name: Set up Docker Buildx
id: buildx
2023-12-19 14:41:18 +01:00
uses: docker/setup-buildx-action@v3
2024-01-02 20:09:28 +01:00
- name: Build 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 21:38:51 +02:00
with:
2024-01-02 20:09:28 +01:00
context: ./pdns-mysql
file: ./pdns-mysql/Dockerfile.alpine
2021-10-05 21:38:51 +02:00
builder: ${{ steps.buildx.outputs.name }}
push: false
tags: pdns-mysql:alpine
2021-10-05 21:38:51 +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 21:38:51 +02:00
test-pdns-admin:
2023-02-24 22:23:07 +01:00
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
2023-12-19 14:41:18 +01:00
uses: actions/checkout@v4
2023-02-24 22:23:07 +01:00
- name: Set up Docker Buildx
id: buildx
2023-12-19 14:41:18 +01:00
uses: docker/setup-buildx-action@v3
- name: Build pdns admin
id: docker_build_pdns_admin
2023-12-19 14:41:18 +01:00
uses: docker/build-push-action@v5
2021-10-05 21:38:51 +02:00
with:
context: ./pdns-admin
file: ./pdns-admin/Dockerfile
2021-10-05 21:38:51 +02:00
builder: ${{ steps.buildx.outputs.name }}
push: false
tags: |
pdns-admin:latest
2021-10-05 21:38:51 +02:00
- name: Image digest
run: echo ${{ steps.docker_build_pdns_admin.outputs.digest }}