Skip to content

Commit

Permalink
Build amd64 and arm64 images concurrently
Browse files Browse the repository at this point in the history
arm64 takes ~3x as long
  • Loading branch information
dlpierce committed Apr 18, 2024
1 parent 66340e3 commit b09f4cd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,19 @@ on:

jobs:
docker:
strategy:
matrix:
platform:
- linux/amd64
- linux/arm64
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ matrix.platform }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
Expand All @@ -26,6 +33,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
platforms: ${{ matrix.platform }}
provenance: false
push: true
tags: ghcr.io/iublibtech/rdc/rdc:latest

0 comments on commit b09f4cd

Please sign in to comment.