build: adds arm64 build to docker build workflow (#4872)
Adds arm64 build to docker build workflow
This commit is contained in:
parent
fc5632af78
commit
b5b1da7f6e
1 changed files with 8 additions and 4 deletions
12
.github/workflows/docker-build.yml
vendored
12
.github/workflows/docker-build.yml
vendored
|
|
@ -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' }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue