Skip to content

Commit

Permalink
Build arm64/amd64 images natively in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
harryzcy committed Feb 9, 2025
1 parent e67e2cf commit 99f3dda
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ jobs:

docker:
name: Docker Build
runs-on: ubuntu-24.04
runs-on: ${{ contains(matrix.platforms, 'arm64') && 'ubuntu-24.04-arm' || 'ubuntu-24.04' }}
strategy:
matrix:
platforms: [linux/amd64, linux/arm64/v8]
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
Expand Down Expand Up @@ -121,5 +124,5 @@ jobs:
BUILD_DATE=${{ env.BUILD_DATE }}
BUILD_COMMIT=${{ env.BUILD_COMMIT }}
BUILD_VERSION=${{ env.BUILD_VERSION }}
platforms: linux/amd64,linux/arm64/v8
platforms: ${{ matrix.platforms }}
push: false

0 comments on commit 99f3dda

Please sign in to comment.