From eca5ee5aac3926d730c8abfdb9e80beb399f6788 Mon Sep 17 00:00:00 2001 From: Peter Schiffer <3899107+pschiffe@users.noreply.github.com> Date: Wed, 6 Oct 2021 00:59:19 +0200 Subject: [PATCH] Add actions for couple of tags --- .../docker-image-tag-pdns-alpine-44.yml | 39 +++++++++++++++++++ .../docker-image-tag-pdns-fedora-44.yml | 6 +-- .../docker-image-tag-recursor-alpine-44.yml | 39 +++++++++++++++++++ .../docker-image-tag-recursor-fedora-44.yml | 39 +++++++++++++++++++ 4 files changed, 120 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/docker-image-tag-pdns-alpine-44.yml create mode 100644 .github/workflows/docker-image-tag-recursor-alpine-44.yml create mode 100644 .github/workflows/docker-image-tag-recursor-fedora-44.yml diff --git a/.github/workflows/docker-image-tag-pdns-alpine-44.yml b/.github/workflows/docker-image-tag-pdns-alpine-44.yml new file mode 100644 index 0000000..01ab623 --- /dev/null +++ b/.github/workflows/docker-image-tag-pdns-alpine-44.yml @@ -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 }} diff --git a/.github/workflows/docker-image-tag-pdns-fedora-44.yml b/.github/workflows/docker-image-tag-pdns-fedora-44.yml index ccc8177..1ace1fc 100644 --- a/.github/workflows/docker-image-tag-pdns-fedora-44.yml +++ b/.github/workflows/docker-image-tag-pdns-fedora-44.yml @@ -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 }} diff --git a/.github/workflows/docker-image-tag-recursor-alpine-44.yml b/.github/workflows/docker-image-tag-recursor-alpine-44.yml new file mode 100644 index 0000000..32977c3 --- /dev/null +++ b/.github/workflows/docker-image-tag-recursor-alpine-44.yml @@ -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 }} diff --git a/.github/workflows/docker-image-tag-recursor-fedora-44.yml b/.github/workflows/docker-image-tag-recursor-fedora-44.yml new file mode 100644 index 0000000..4ab0291 --- /dev/null +++ b/.github/workflows/docker-image-tag-recursor-fedora-44.yml @@ -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 }}