mirror of
https://github.com/pschiffe/docker-pdns.git
synced 2025-01-18 19:11:14 +01:00
Simplify workflows for tagged images
This commit is contained in:
parent
eacc4c57df
commit
b6b35d90db
8 changed files with 28 additions and 168 deletions
|
@ -1,39 +0,0 @@
|
||||||
name: Docker Image CI pdns-mysql 4.4 alpine
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags: [ 'pdns-mysql-alpine-4.4' ]
|
|
||||||
|
|
||||||
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
|
|
||||||
id: docker_build_pdns
|
|
||||||
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-mysql:4.4-alpine
|
|
||||||
|
|
||||||
- name: Image digest
|
|
||||||
run: echo ${{ steps.docker_build_pdns.outputs.digest }}
|
|
|
@ -1,9 +1,9 @@
|
||||||
name: Docker Image CI pdns-mysql 4.5 alpine
|
name: Docker Image CI pdns-mysql alpine
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'pdns-mysql-alpine-4.5'
|
- 'pdns-mysql-alpine-*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
|
@ -26,6 +26,10 @@ jobs:
|
||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
|
|
||||||
|
- name: Set output
|
||||||
|
id: vars
|
||||||
|
run: echo ::set-output name=version::${GITHUB_REF##*-}
|
||||||
|
|
||||||
- name: Build and push PDNS
|
- name: Build and push PDNS
|
||||||
id: docker_build_pdns
|
id: docker_build_pdns
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
|
@ -34,7 +38,7 @@ jobs:
|
||||||
file: ./pdns/Dockerfile.alpine
|
file: ./pdns/Dockerfile.alpine
|
||||||
builder: ${{ steps.buildx.outputs.name }}
|
builder: ${{ steps.buildx.outputs.name }}
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-mysql:4.5-alpine
|
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-mysql:${{ steps.vars.outputs.version }}-alpine
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
run: echo ${{ steps.docker_build_pdns.outputs.digest }}
|
run: echo ${{ steps.docker_build_pdns.outputs.digest }}
|
|
@ -1,39 +0,0 @@
|
||||||
name: Docker Image CI pdns-mysql 4.4 latest
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags: [ 'pdns-mysql-fedora-4.4' ]
|
|
||||||
|
|
||||||
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
|
|
||||||
id: docker_build_pdns
|
|
||||||
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-mysql:4.4
|
|
||||||
|
|
||||||
- name: Image digest
|
|
||||||
run: echo ${{ steps.docker_build_pdns.outputs.digest }}
|
|
|
@ -1,9 +1,9 @@
|
||||||
name: Docker Image CI pdns-mysql 4.5 latest
|
name: Docker Image CI pdns-mysql fedora
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'pdns-mysql-fedora-4.5'
|
- 'pdns-mysql-fedora-*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
|
@ -26,6 +26,10 @@ jobs:
|
||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
|
|
||||||
|
- name: Set output
|
||||||
|
id: vars
|
||||||
|
run: echo ::set-output name=version::${GITHUB_REF##*-}
|
||||||
|
|
||||||
- name: Build and push PDNS
|
- name: Build and push PDNS
|
||||||
id: docker_build_pdns
|
id: docker_build_pdns
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
|
@ -34,7 +38,7 @@ jobs:
|
||||||
file: ./pdns/Dockerfile
|
file: ./pdns/Dockerfile
|
||||||
builder: ${{ steps.buildx.outputs.name }}
|
builder: ${{ steps.buildx.outputs.name }}
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-mysql:4.5
|
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-mysql:${{ steps.vars.outputs.version }}
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
run: echo ${{ steps.docker_build_pdns.outputs.digest }}
|
run: echo ${{ steps.docker_build_pdns.outputs.digest }}
|
|
@ -1,39 +0,0 @@
|
||||||
name: Docker Image CI pdns-recursor 4.4 alpine
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags: [ 'pdns-recursor-alpine-4.4' ]
|
|
||||||
|
|
||||||
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
|
|
||||||
id: docker_build_recursor
|
|
||||||
uses: docker/build-push-action@v2
|
|
||||||
with:
|
|
||||||
context: ./pdns-recursor
|
|
||||||
file: ./pdns-recursor/Dockerfile.alpine
|
|
||||||
builder: ${{ steps.buildx.outputs.name }}
|
|
||||||
push: true
|
|
||||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-recursor:4.4-alpine
|
|
||||||
|
|
||||||
- name: Image digest
|
|
||||||
run: echo ${{ steps.docker_build_recursor.outputs.digest }}
|
|
|
@ -1,9 +1,9 @@
|
||||||
name: Docker Image CI pdns-recursor 4.5 alpine
|
name: Docker Image CI pdns-recursor alpine
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'pdns-recursor-alpine-4.5'
|
- 'pdns-recursor-alpine-*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
|
@ -26,6 +26,10 @@ jobs:
|
||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
|
|
||||||
|
- name: Set output
|
||||||
|
id: vars
|
||||||
|
run: echo ::set-output name=version::${GITHUB_REF##*-}
|
||||||
|
|
||||||
- name: Build and push PDNS Recursor
|
- name: Build and push PDNS Recursor
|
||||||
id: docker_build_recursor
|
id: docker_build_recursor
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
|
@ -34,7 +38,7 @@ jobs:
|
||||||
file: ./pdns-recursor/Dockerfile.alpine
|
file: ./pdns-recursor/Dockerfile.alpine
|
||||||
builder: ${{ steps.buildx.outputs.name }}
|
builder: ${{ steps.buildx.outputs.name }}
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-recursor:4.5-alpine
|
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-recursor:${{ steps.vars.outputs.version }}-alpine
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
run: echo ${{ steps.docker_build_recursor.outputs.digest }}
|
run: echo ${{ steps.docker_build_recursor.outputs.digest }}
|
|
@ -1,39 +0,0 @@
|
||||||
name: Docker Image CI pdns-recursor 4.4 latest
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags: [ 'pdns-recursor-fedora-4.4' ]
|
|
||||||
|
|
||||||
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
|
|
||||||
id: docker_build_recursor
|
|
||||||
uses: docker/build-push-action@v2
|
|
||||||
with:
|
|
||||||
context: ./pdns-recursor
|
|
||||||
file: ./pdns-recursor/Dockerfile
|
|
||||||
builder: ${{ steps.buildx.outputs.name }}
|
|
||||||
push: true
|
|
||||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-recursor:4.4
|
|
||||||
|
|
||||||
- name: Image digest
|
|
||||||
run: echo ${{ steps.docker_build_recursor.outputs.digest }}
|
|
|
@ -1,9 +1,9 @@
|
||||||
name: Docker Image CI pdns-recursor 4.5 latest
|
name: Docker Image CI pdns-recursor fedora
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'pdns-recursor-fedora-4.5'
|
- 'pdns-recursor-fedora-*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
|
@ -26,6 +26,10 @@ jobs:
|
||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
|
|
||||||
|
- name: Set output
|
||||||
|
id: vars
|
||||||
|
run: echo ::set-output name=version::${GITHUB_REF##*-}
|
||||||
|
|
||||||
- name: Build and push PDNS Recursor
|
- name: Build and push PDNS Recursor
|
||||||
id: docker_build_recursor
|
id: docker_build_recursor
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
|
@ -34,7 +38,7 @@ jobs:
|
||||||
file: ./pdns-recursor/Dockerfile
|
file: ./pdns-recursor/Dockerfile
|
||||||
builder: ${{ steps.buildx.outputs.name }}
|
builder: ${{ steps.buildx.outputs.name }}
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-recursor:4.5
|
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-recursor:${{ steps.vars.outputs.version }}
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
run: echo ${{ steps.docker_build_recursor.outputs.digest }}
|
run: echo ${{ steps.docker_build_recursor.outputs.digest }}
|
Loading…
Reference in a new issue