build: adds arm64 build to docker build workflow (#4872)

Adds arm64 build to docker build workflow
This commit is contained in:
Jordan Frazier 2024-11-26 10:00:41 -08:00 • committed by GitHub
commit b5b1da7f6e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -203,6 +203,7 @@ jobs:
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push to Docker Hub - name: Build and Push to Docker Hub
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
@ -210,8 +211,9 @@ jobs:
push: true push: true
file: ${{ needs.setup.outputs.file }} file: ${{ needs.setup.outputs.file }}
tags: ${{ needs.setup.outputs.docker_tags }} 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) platforms: linux/amd64,linux/arm64
provenance: false cache-from: type=gha
cache-to: type=gha,mode=max
- name: Login to Github Container Registry - name: Login to Github Container Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
@ -219,6 +221,7 @@ jobs:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.TEMP_GHCR_TOKEN}} password: ${{ secrets.TEMP_GHCR_TOKEN}}
- name: Build and push to Github Container Registry - name: Build and push to Github Container Registry
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
@ -226,8 +229,9 @@ jobs:
push: true push: true
file: ${{ needs.setup.outputs.file }} file: ${{ needs.setup.outputs.file }}
tags: ${{ needs.setup.outputs.ghcr_tags }} 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) platforms: linux/amd64,linux/arm64
provenance: false cache-from: type=gha
cache-to: type=gha,mode=max
build_components: build_components:
if: ${{ inputs.release_type == 'main' }} if: ${{ inputs.release_type == 'main' }}