From ecb0ec768536b03bf12fe599aa8775446e200698 Mon Sep 17 00:00:00 2001 From: Chongyi Zheng Date: Thu, 23 Feb 2023 16:43:12 -0500 Subject: [PATCH] Build arm64 images in CI (#96) * Configure arm64 build for workflows * Add Arm builds to `docker-image.yml` * Format yaml file * Remove arm/v7 since Fedora has no official image for it --- .github/workflows/docker-image-tag-pdns-alpine.yml | 4 ++++ .github/workflows/docker-image-tag-pdns-fedora.yml | 4 ++++ .github/workflows/docker-image-tag-recursor-alpine.yml | 4 ++++ .github/workflows/docker-image-tag-recursor-fedora.yml | 4 ++++ .github/workflows/docker-image.yml | 10 ++++++++++ 5 files changed, 26 insertions(+) diff --git a/.github/workflows/docker-image-tag-pdns-alpine.yml b/.github/workflows/docker-image-tag-pdns-alpine.yml index fddc712..77191cd 100644 --- a/.github/workflows/docker-image-tag-pdns-alpine.yml +++ b/.github/workflows/docker-image-tag-pdns-alpine.yml @@ -16,6 +16,9 @@ jobs: - 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 @@ -36,6 +39,7 @@ jobs: with: context: ./pdns file: ./pdns/Dockerfile.alpine + platforms: linux/amd64,linux/arm64 builder: ${{ steps.buildx.outputs.name }} push: true tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-mysql:${{ steps.vars.outputs.version }}-alpine diff --git a/.github/workflows/docker-image-tag-pdns-fedora.yml b/.github/workflows/docker-image-tag-pdns-fedora.yml index 213f1d0..329aaf4 100644 --- a/.github/workflows/docker-image-tag-pdns-fedora.yml +++ b/.github/workflows/docker-image-tag-pdns-fedora.yml @@ -16,6 +16,9 @@ jobs: - 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 @@ -36,6 +39,7 @@ jobs: with: context: ./pdns file: ./pdns/Dockerfile + platforms: linux/amd64,linux/arm64 builder: ${{ steps.buildx.outputs.name }} push: true tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-mysql:${{ steps.vars.outputs.version }} diff --git a/.github/workflows/docker-image-tag-recursor-alpine.yml b/.github/workflows/docker-image-tag-recursor-alpine.yml index a721a27..316bb6d 100644 --- a/.github/workflows/docker-image-tag-recursor-alpine.yml +++ b/.github/workflows/docker-image-tag-recursor-alpine.yml @@ -16,6 +16,9 @@ jobs: - 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 @@ -36,6 +39,7 @@ jobs: with: context: ./pdns-recursor file: ./pdns-recursor/Dockerfile.alpine + platforms: linux/amd64,linux/arm64 builder: ${{ steps.buildx.outputs.name }} push: true tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-recursor:${{ steps.vars.outputs.version }}-alpine diff --git a/.github/workflows/docker-image-tag-recursor-fedora.yml b/.github/workflows/docker-image-tag-recursor-fedora.yml index d2ef9e4..3be9b7c 100644 --- a/.github/workflows/docker-image-tag-recursor-fedora.yml +++ b/.github/workflows/docker-image-tag-recursor-fedora.yml @@ -16,6 +16,9 @@ jobs: - 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 @@ -36,6 +39,7 @@ jobs: with: context: ./pdns-recursor file: ./pdns-recursor/Dockerfile + platforms: linux/amd64,linux/arm64 builder: ${{ steps.buildx.outputs.name }} push: true tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-recursor:${{ steps.vars.outputs.version }} diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index b8c2ba9..945b97b 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -15,6 +15,9 @@ jobs: - 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 @@ -31,6 +34,7 @@ jobs: with: context: ./pdns-recursor file: ./pdns-recursor/Dockerfile + platforms: linux/amd64,linux/arm64 builder: ${{ steps.buildx.outputs.name }} push: true tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-recursor:latest @@ -44,6 +48,7 @@ jobs: with: context: ./pdns-recursor file: ./pdns-recursor/Dockerfile.alpine + platforms: linux/amd64,linux/arm64 builder: ${{ steps.buildx.outputs.name }} push: true tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-recursor:alpine @@ -57,6 +62,7 @@ jobs: with: context: ./pdns file: ./pdns/Dockerfile + platforms: linux/amd64,linux/arm64 builder: ${{ steps.buildx.outputs.name }} push: true tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-mysql:latest @@ -70,6 +76,7 @@ jobs: with: context: ./pdns file: ./pdns/Dockerfile.alpine + platforms: linux/amd64,linux/arm64 builder: ${{ steps.buildx.outputs.name }} push: true tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pdns-mysql:alpine @@ -83,6 +90,7 @@ jobs: with: context: ./pdns-admin-base-ngoduykhanh file: ./pdns-admin-base-ngoduykhanh/Dockerfile + platforms: linux/amd64,linux/arm64 builder: ${{ steps.buildx.outputs.name }} push: true tags: | @@ -98,6 +106,7 @@ jobs: with: context: ./pdns-admin-uwsgi-ngoduykhanh file: ./pdns-admin-uwsgi-ngoduykhanh/Dockerfile + platforms: linux/amd64,linux/arm64 builder: ${{ steps.buildx.outputs.name }} push: true tags: | @@ -113,6 +122,7 @@ jobs: with: context: ./pdns-admin-static-ngoduykhanh file: ./pdns-admin-static-ngoduykhanh/Dockerfile + platforms: linux/amd64,linux/arm64 builder: ${{ steps.buildx.outputs.name }} push: true tags: |