Skip to content

Commit

Permalink
try using matrix to use the right architecture to build with
Browse files Browse the repository at this point in the history
  • Loading branch information
AshtonStephens committed Oct 24, 2024
1 parent d2cb891 commit 8ac9984
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/image-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,24 @@ jobs:
## - workflow is building default branch (master)
image:
name: Build Image
runs-on: ubuntu-latest
strategy:
fail-fast: false
## Build a maximum of 2 images concurrently based on matrix.dist
max-parallel: 3
matrix:
platform:
- name: ubuntu-latest
docker_platforms: "linux/amd64, linux/amd64/v3"
- name: macos-14
docker_platforms: "linux/arm64"
dist:
- debian
docker_target:
- signer
- emily-server
- blocklist-client
# - emily-server
# - blocklist-client

runs-on: ${{ matrix.platform.name }}
steps:
## Setup Docker for the builds
- name: Docker setup
Expand Down Expand Up @@ -95,7 +101,7 @@ jobs:
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
file: ./.github/actions/dockerfiles/Dockerfile.${{ matrix.dist }}
platforms: ${{ env.docker_platforms }}
platforms: ${{ matrix.platform.docker_platforms }}
tags: ${{ steps.docker_metadata.outputs.tags }}
labels: ${{ steps.docker_metadata.outputs.labels }}
target: ${{ matrix.docker_target }}
Expand Down

0 comments on commit 8ac9984

Please sign in to comment.