Add actions for couple of tags

This commit is contained in:
Peter Schiffer 2021-10-06 00:59:19 +02:00
parent 6a01d915ca
commit eca5ee5aac
4 changed files with 120 additions and 3 deletions

View file

@ -0,0 +1,39 @@
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

@ -25,8 +25,8 @@ jobs:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push PDNS latest
id: docker_build_pdns_latest
- name: Build and push PDNS
id: docker_build_pdns
uses: docker/build-push-action@v2
with:
context: ./pdns
@ -36,4 +36,4 @@ jobs:
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-mysql:4.4
- name: Image digest
run: echo ${{ steps.docker_build_pdns_latest.outputs.digest }}
run: echo ${{ steps.docker_build_pdns.outputs.digest }}

View file

@ -0,0 +1,39 @@
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

@ -0,0 +1,39 @@
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 }}