mirror of
https://github.com/pschiffe/docker-pdns.git
synced 2025-01-18 11:01:14 +01:00
CI: run jobs in the main workflow in parallel
This commit is contained in:
parent
dc97d58e2d
commit
689f455d98
1 changed files with 93 additions and 15 deletions
108
.github/workflows/docker-image.yml
vendored
108
.github/workflows/docker-image.yml
vendored
|
@ -6,28 +6,21 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
build-recursor-latest:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Check Out Repo
|
- name: Check Out Repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v2
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
id: buildx
|
id: buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push PDNS Recursor latest
|
- name: Build and push PDNS Recursor latest
|
||||||
id: docker_build_recursor_latest
|
id: docker_build_recursor_latest
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
|
@ -38,10 +31,24 @@ jobs:
|
||||||
builder: ${{ steps.buildx.outputs.name }}
|
builder: ${{ steps.buildx.outputs.name }}
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-recursor:latest
|
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-recursor:latest
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
run: echo ${{ steps.docker_build_recursor_latest.outputs.digest }}
|
run: echo ${{ steps.docker_build_recursor_latest.outputs.digest }}
|
||||||
|
|
||||||
|
build-recursor-alpine:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check Out Repo
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
id: buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
- name: Build and push PDNS Recursor alpine
|
- name: Build and push PDNS Recursor alpine
|
||||||
id: docker_build_recursor_alpine
|
id: docker_build_recursor_alpine
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
|
@ -52,10 +59,24 @@ jobs:
|
||||||
builder: ${{ steps.buildx.outputs.name }}
|
builder: ${{ steps.buildx.outputs.name }}
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-recursor:alpine
|
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-recursor:alpine
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
run: echo ${{ steps.docker_build_recursor_alpine.outputs.digest }}
|
run: echo ${{ steps.docker_build_recursor_alpine.outputs.digest }}
|
||||||
|
|
||||||
|
build-pdns-latest:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check Out Repo
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
id: buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
- name: Build and push PDNS latest
|
- name: Build and push PDNS latest
|
||||||
id: docker_build_pdns_latest
|
id: docker_build_pdns_latest
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
|
@ -66,10 +87,24 @@ jobs:
|
||||||
builder: ${{ steps.buildx.outputs.name }}
|
builder: ${{ steps.buildx.outputs.name }}
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-mysql:latest
|
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-mysql:latest
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
run: echo ${{ steps.docker_build_pdns_latest.outputs.digest }}
|
run: echo ${{ steps.docker_build_pdns_latest.outputs.digest }}
|
||||||
|
|
||||||
|
build-pdns-alpine:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check Out Repo
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
id: buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
- name: Build and push PDNS alpine
|
- name: Build and push PDNS alpine
|
||||||
id: docker_build_pdns_alpine
|
id: docker_build_pdns_alpine
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
|
@ -80,10 +115,24 @@ jobs:
|
||||||
builder: ${{ steps.buildx.outputs.name }}
|
builder: ${{ steps.buildx.outputs.name }}
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-mysql:alpine
|
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-mysql:alpine
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
run: echo ${{ steps.docker_build_pdns_alpine.outputs.digest }}
|
run: echo ${{ steps.docker_build_pdns_alpine.outputs.digest }}
|
||||||
|
|
||||||
|
build-admin-base:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check Out Repo
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
id: buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
- name: Build and push admin base
|
- name: Build and push admin base
|
||||||
id: docker_build_admin_base
|
id: docker_build_admin_base
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
|
@ -96,10 +145,25 @@ jobs:
|
||||||
tags: |
|
tags: |
|
||||||
${{ secrets.DOCKER_HUB_USERNAME }}/pdns-admin-base:latest
|
${{ secrets.DOCKER_HUB_USERNAME }}/pdns-admin-base:latest
|
||||||
${{ secrets.DOCKER_HUB_USERNAME }}/pdns-admin-base:ngoduykhanh
|
${{ secrets.DOCKER_HUB_USERNAME }}/pdns-admin-base:ngoduykhanh
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
run: echo ${{ steps.docker_build_admin_base.outputs.digest }}
|
run: echo ${{ steps.docker_build_admin_base.outputs.digest }}
|
||||||
|
|
||||||
|
build-admin-uwsgi:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build-admin-base
|
||||||
|
steps:
|
||||||
|
- name: Check Out Repo
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
id: buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
- name: Build and push admin uwsgi
|
- name: Build and push admin uwsgi
|
||||||
id: docker_build_admin_uwsgi
|
id: docker_build_admin_uwsgi
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
|
@ -112,10 +176,25 @@ jobs:
|
||||||
tags: |
|
tags: |
|
||||||
${{ secrets.DOCKER_HUB_USERNAME }}/pdns-admin-uwsgi:latest
|
${{ secrets.DOCKER_HUB_USERNAME }}/pdns-admin-uwsgi:latest
|
||||||
${{ secrets.DOCKER_HUB_USERNAME }}/pdns-admin-uwsgi:ngoduykhanh
|
${{ secrets.DOCKER_HUB_USERNAME }}/pdns-admin-uwsgi:ngoduykhanh
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
run: echo ${{ steps.docker_build_admin_uwsgi.outputs.digest }}
|
run: echo ${{ steps.docker_build_admin_uwsgi.outputs.digest }}
|
||||||
|
|
||||||
|
build-admin-static:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build-admin-base
|
||||||
|
steps:
|
||||||
|
- name: Check Out Repo
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
id: buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
- name: Build and push admin static
|
- name: Build and push admin static
|
||||||
id: docker_build_admin_static
|
id: docker_build_admin_static
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
|
@ -128,6 +207,5 @@ jobs:
|
||||||
tags: |
|
tags: |
|
||||||
${{ secrets.DOCKER_HUB_USERNAME }}/pdns-admin-static:latest
|
${{ secrets.DOCKER_HUB_USERNAME }}/pdns-admin-static:latest
|
||||||
${{ secrets.DOCKER_HUB_USERNAME }}/pdns-admin-static:ngoduykhanh
|
${{ secrets.DOCKER_HUB_USERNAME }}/pdns-admin-static:ngoduykhanh
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
run: echo ${{ steps.docker_build_admin_static.outputs.digest }}
|
run: echo ${{ steps.docker_build_admin_static.outputs.digest }}
|
||||||
|
|
Loading…
Reference in a new issue