2021-10-05 19:53:01 +02:00
|
|
|
name: Docker Image CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Check Out Repo
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
id: buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
|
|
|
|
- name: Login to Docker Hub
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
|
|
|
|
|
|
|
- name: Build and push PDNS Recursor latest
|
|
|
|
id: docker_build_recursor_latest
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: ./pdns-recursor
|
2021-10-05 19:54:48 +02:00
|
|
|
file: ./pdns-recursor/Dockerfile
|
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 }}
|
|
|
|
|
|
|
|
- name: Build and push PDNS Recursor alpine
|
|
|
|
id: docker_build_recursor_alpine
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: ./pdns-recursor
|
2021-10-05 19:54:48 +02:00
|
|
|
file: ./pdns-recursor/Dockerfile.alpine
|
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
|
|
|
|
|
|
|
- name: Build and push PDNS latest
|
|
|
|
id: docker_build_pdns_latest
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: ./pdns
|
|
|
|
file: ./pdns/Dockerfile
|
|
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
|
|
push: true
|
|
|
|
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns:latest
|
|
|
|
|
|
|
|
- name: Image digest
|
|
|
|
run: echo ${{ steps.docker_build_pdns_latest.outputs.digest }}
|
|
|
|
|
|
|
|
- name: Build and push PDNS alpine
|
|
|
|
id: docker_build_pdns_alpine
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: ./pdns
|
|
|
|
file: ./pdns/Dockerfile.alpine
|
|
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
|
|
push: true
|
|
|
|
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns:alpine
|
|
|
|
|
|
|
|
- name: Image digest
|
|
|
|
run: echo ${{ steps.docker_build_pdns_alpine.outputs.digest }}
|
|
|
|
|
|
|
|
- name: Build and push admin base
|
|
|
|
id: docker_build_admin_base
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: ./pdns-admin-base-ngoduykhanh
|
|
|
|
file: ./pdns-admin-base-ngoduykhanh/Dockerfile
|
|
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
${{ secrets.DOCKER_HUB_USERNAME }}/pdns-admin-base:latest
|
|
|
|
${{ secrets.DOCKER_HUB_USERNAME }}/pdns-admin-base:ngoduykhanh
|
|
|
|
|
|
|
|
- name: Image digest
|
|
|
|
run: echo ${{ steps.docker_build_admin_base.outputs.digest }}
|
2021-10-05 20:44:06 +02:00
|
|
|
|
|
|
|
- name: Build and push admin uwsgi
|
|
|
|
id: docker_build_admin_uwsgi
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: ./pdns-admin-uwsgi-ngoduykhanh
|
|
|
|
file: ./pdns-admin-uwsgi-ngoduykhanh/Dockerfile
|
|
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
${{ secrets.DOCKER_HUB_USERNAME }}/pdns-admin-uwsgi:latest
|
|
|
|
${{ secrets.DOCKER_HUB_USERNAME }}/pdns-admin-uwsgi:ngoduykhanh
|
|
|
|
|
|
|
|
- name: Image digest
|
|
|
|
run: echo ${{ steps.docker_build_admin_uwsgi.outputs.digest }}
|
|
|
|
|
|
|
|
- name: Build and push admin static
|
|
|
|
id: docker_build_admin_static
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: ./pdns-admin-static-ngoduykhanh
|
|
|
|
file: ./pdns-admin-static-ngoduykhanh/Dockerfile
|
|
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
${{ secrets.DOCKER_HUB_USERNAME }}/pdns-admin-static:latest
|
|
|
|
${{ secrets.DOCKER_HUB_USERNAME }}/pdns-admin-static:ngoduykhanh
|
|
|
|
|
|
|
|
- name: Image digest
|
|
|
|
run: echo ${{ steps.docker_build_admin_static.outputs.digest }}
|