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:
|
|
|
|
|
|
|
|
test_build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-01-13 21:19:44 +01:00
|
|
|
|
2021-10-05 21:38:51 +02:00
|
|
|
- name: Check Out Repo
|
2023-01-13 22:32:26 +01:00
|
|
|
uses: actions/checkout@v3
|
2021-10-05 21:38:51 +02:00
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
id: buildx
|
2023-01-13 22:32:26 +01:00
|
|
|
uses: docker/setup-buildx-action@v2
|
2021-10-05 21:38:51 +02:00
|
|
|
|
|
|
|
- name: Build PDNS Recursor latest
|
|
|
|
id: docker_build_recursor_latest
|
2023-01-13 22:32:26 +01:00
|
|
|
uses: docker/build-push-action@v3
|
2021-10-05 21:38:51 +02:00
|
|
|
with:
|
|
|
|
context: ./pdns-recursor
|
|
|
|
file: ./pdns-recursor/Dockerfile
|
|
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
|
|
push: false
|
2023-01-13 21:19:44 +01:00
|
|
|
tags: pdns-recursor:latest
|
2021-10-05 21:38:51 +02:00
|
|
|
|
|
|
|
- name: Image digest
|
|
|
|
run: echo ${{ steps.docker_build_recursor_latest.outputs.digest }}
|
|
|
|
|
|
|
|
- name: Build PDNS Recursor alpine
|
|
|
|
id: docker_build_recursor_alpine
|
2023-01-13 22:32:26 +01:00
|
|
|
uses: docker/build-push-action@v3
|
2021-10-05 21:38:51 +02:00
|
|
|
with:
|
|
|
|
context: ./pdns-recursor
|
|
|
|
file: ./pdns-recursor/Dockerfile.alpine
|
|
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
|
|
push: false
|
2023-01-13 21:19:44 +01:00
|
|
|
tags: pdns-recursor:alpine
|
2021-10-05 21:38:51 +02:00
|
|
|
|
|
|
|
- name: Image digest
|
|
|
|
run: echo ${{ steps.docker_build_recursor_alpine.outputs.digest }}
|
|
|
|
|
|
|
|
- name: Build PDNS latest
|
|
|
|
id: docker_build_pdns_latest
|
2023-01-13 22:32:26 +01:00
|
|
|
uses: docker/build-push-action@v3
|
2021-10-05 21:38:51 +02:00
|
|
|
with:
|
|
|
|
context: ./pdns
|
|
|
|
file: ./pdns/Dockerfile
|
|
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
|
|
push: false
|
2023-01-13 21:19:44 +01:00
|
|
|
tags: pdns-mysql:latest
|
2021-10-05 21:38:51 +02:00
|
|
|
|
|
|
|
- name: Image digest
|
|
|
|
run: echo ${{ steps.docker_build_pdns_latest.outputs.digest }}
|
|
|
|
|
|
|
|
- name: Build PDNS alpine
|
|
|
|
id: docker_build_pdns_alpine
|
2023-01-13 22:32:26 +01:00
|
|
|
uses: docker/build-push-action@v3
|
2021-10-05 21:38:51 +02:00
|
|
|
with:
|
|
|
|
context: ./pdns
|
|
|
|
file: ./pdns/Dockerfile.alpine
|
|
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
|
|
push: false
|
2023-01-13 21:19:44 +01:00
|
|
|
tags: pdns-mysql:alpine
|
2021-10-05 21:38:51 +02:00
|
|
|
|
|
|
|
- name: Image digest
|
|
|
|
run: echo ${{ steps.docker_build_pdns_alpine.outputs.digest }}
|
|
|
|
|
|
|
|
- name: Build admin base
|
|
|
|
id: docker_build_admin_base
|
2023-01-13 22:32:26 +01:00
|
|
|
uses: docker/build-push-action@v3
|
2021-10-05 21:38:51 +02:00
|
|
|
with:
|
|
|
|
context: ./pdns-admin-base-ngoduykhanh
|
|
|
|
file: ./pdns-admin-base-ngoduykhanh/Dockerfile
|
|
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
|
|
push: false
|
|
|
|
tags: |
|
2023-01-13 21:19:44 +01:00
|
|
|
pdns-admin-base:latest
|
|
|
|
pdns-admin-base:ngoduykhanh
|
2021-10-05 21:38:51 +02:00
|
|
|
|
|
|
|
- name: Image digest
|
|
|
|
run: echo ${{ steps.docker_build_admin_base.outputs.digest }}
|
|
|
|
|
|
|
|
- name: Build admin uwsgi
|
|
|
|
id: docker_build_admin_uwsgi
|
2023-01-13 22:32:26 +01:00
|
|
|
uses: docker/build-push-action@v3
|
2021-10-05 21:38:51 +02:00
|
|
|
with:
|
|
|
|
context: ./pdns-admin-uwsgi-ngoduykhanh
|
|
|
|
file: ./pdns-admin-uwsgi-ngoduykhanh/Dockerfile
|
|
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
|
|
push: false
|
|
|
|
tags: |
|
2023-01-13 21:19:44 +01:00
|
|
|
pdns-admin-uwsgi:latest
|
|
|
|
pdns-admin-uwsgi:ngoduykhanh
|
2021-10-05 21:38:51 +02:00
|
|
|
|
|
|
|
- name: Image digest
|
|
|
|
run: echo ${{ steps.docker_build_admin_uwsgi.outputs.digest }}
|
|
|
|
|
|
|
|
- name: Build admin static
|
|
|
|
id: docker_build_admin_static
|
2023-01-13 22:32:26 +01:00
|
|
|
uses: docker/build-push-action@v3
|
2021-10-05 21:38:51 +02:00
|
|
|
with:
|
|
|
|
context: ./pdns-admin-static-ngoduykhanh
|
|
|
|
file: ./pdns-admin-static-ngoduykhanh/Dockerfile
|
|
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
|
|
push: false
|
|
|
|
tags: |
|
2023-01-13 21:19:44 +01:00
|
|
|
pdns-admin-static:latest
|
|
|
|
pdns-admin-static:ngoduykhanh
|
2021-10-05 21:38:51 +02:00
|
|
|
|
|
|
|
- name: Image digest
|
|
|
|
run: echo ${{ steps.docker_build_admin_static.outputs.digest }}
|