Skip to content

Commit

Permalink
ci: build multi-arch docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyXiang committed Oct 17, 2023
1 parent 2ff1787 commit 0502b54
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ jobs:
docker:
name: Build and push Docker image
runs-on: ubuntu-latest
outputs:
meta: ${{ steps.meta.outputs.json }}
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
steps:
-
name: Docker meta
Expand Down Expand Up @@ -44,6 +48,7 @@ jobs:
uses: docker/build-push-action@v5
with:
push: true
platforms: ${{ matrix.platform }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
Expand Down

0 comments on commit 0502b54

Please sign in to comment.