From b5b1da7f6e2e0ad480d46c7c992217f0eefb675a Mon Sep 17 00:00:00 2001 From: Jordan Frazier <122494242+jordanrfrazier@users.noreply.github.com> Date: Tue, 26 Nov 2024 10:00:41 -0800 Subject: [PATCH] build: adds arm64 build to docker build workflow (#4872) Adds arm64 build to docker build workflow --- .github/workflows/docker-build.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index a3b8b4c5e..5307fffb8 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -203,6 +203,7 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and Push to Docker Hub uses: docker/build-push-action@v6 with: @@ -210,8 +211,9 @@ jobs: push: true file: ${{ needs.setup.outputs.file }} tags: ${{ needs.setup.outputs.docker_tags }} - # provenance: false will result in a single manifest for all platforms which makes the image pullable from arm64 machines via the emulation (e.g. Apple Silicon machines) - provenance: false + platforms: linux/amd64,linux/arm64 + cache-from: type=gha + cache-to: type=gha,mode=max - name: Login to Github Container Registry uses: docker/login-action@v3 @@ -219,6 +221,7 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.TEMP_GHCR_TOKEN}} + - name: Build and push to Github Container Registry uses: docker/build-push-action@v6 with: @@ -226,8 +229,9 @@ jobs: push: true file: ${{ needs.setup.outputs.file }} tags: ${{ needs.setup.outputs.ghcr_tags }} - # provenance: false will result in a single manifest for all platforms which makes the image pullable from arm64 machines via the emulation (e.g. Apple Silicon machines) - provenance: false + platforms: linux/amd64,linux/arm64 + cache-from: type=gha + cache-to: type=gha,mode=max build_components: if: ${{ inputs.release_type == 'main' }}