Simplify workflows for tagged images

This commit is contained in:
Peter Schiffer 2022-03-25 17:51:40 +01:00
parent eacc4c57df
commit b6b35d90db
No known key found for this signature in database
GPG key ID: F2A18AC34A008397
8 changed files with 28 additions and 168 deletions

View file

@ -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 }}

View file

@ -1,9 +1,9 @@
name: Docker Image CI pdns-mysql 4.5 alpine
name: Docker Image CI pdns-mysql alpine
on:
push:
tags:
- 'pdns-mysql-alpine-4.5'
- 'pdns-mysql-alpine-*'
jobs:
@ -26,6 +26,10 @@ jobs:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Set output
id: vars
run: echo ::set-output name=version::${GITHUB_REF##*-}
- name: Build and push PDNS
id: docker_build_pdns
uses: docker/build-push-action@v2
@ -34,7 +38,7 @@ jobs:
file: ./pdns/Dockerfile.alpine
builder: ${{ steps.buildx.outputs.name }}
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
run: echo ${{ steps.docker_build_pdns.outputs.digest }}

View file

@ -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 }}

View file

@ -1,9 +1,9 @@
name: Docker Image CI pdns-mysql 4.5 latest
name: Docker Image CI pdns-mysql fedora
on:
push:
tags:
- 'pdns-mysql-fedora-4.5'
- 'pdns-mysql-fedora-*'
jobs:
@ -26,6 +26,10 @@ jobs:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Set output
id: vars
run: echo ::set-output name=version::${GITHUB_REF##*-}
- name: Build and push PDNS
id: docker_build_pdns
uses: docker/build-push-action@v2
@ -34,7 +38,7 @@ jobs:
file: ./pdns/Dockerfile
builder: ${{ steps.buildx.outputs.name }}
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
run: echo ${{ steps.docker_build_pdns.outputs.digest }}

View file

@ -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 }}

View file

@ -1,9 +1,9 @@
name: Docker Image CI pdns-recursor 4.5 alpine
name: Docker Image CI pdns-recursor alpine
on:
push:
tags:
- 'pdns-recursor-alpine-4.5'
- 'pdns-recursor-alpine-*'
jobs:
@ -26,6 +26,10 @@ jobs:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
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
id: docker_build_recursor
uses: docker/build-push-action@v2
@ -34,7 +38,7 @@ jobs:
file: ./pdns-recursor/Dockerfile.alpine
builder: ${{ steps.buildx.outputs.name }}
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
run: echo ${{ steps.docker_build_recursor.outputs.digest }}

View file

@ -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 }}

View file

@ -1,9 +1,9 @@
name: Docker Image CI pdns-recursor 4.5 latest
name: Docker Image CI pdns-recursor fedora
on:
push:
tags:
- 'pdns-recursor-fedora-4.5'
- 'pdns-recursor-fedora-*'
jobs:
@ -26,6 +26,10 @@ jobs:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
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
id: docker_build_recursor
uses: docker/build-push-action@v2
@ -34,7 +38,7 @@ jobs:
file: ./pdns-recursor/Dockerfile
builder: ${{ steps.buildx.outputs.name }}
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
run: echo ${{ steps.docker_build_recursor.outputs.digest }}