Skip to content

Commit

Permalink
Use QEMU action for multi-arch builds
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewn617 committed Mar 21, 2024
1 parent c690d4c commit 5d4716c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build-and-publish-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,20 @@ jobs:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v3

- name: Set up QEMU for multi-architecture builds
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
Expand All @@ -46,10 +55,10 @@ jobs:
uses: devcontainers/[email protected]
env:
RUBY_VERSION: ${{ matrix.RUBY_VERSION }}
BUILDX_NO_DEFAULT_ATTESTATIONS: true
with:
imageName: ghcr.io/rails/devcontainer/images/ruby
cacheFrom: ghcr.io/rails/devcontainer/images/ruby
imageTag: 0.3.0-${{ matrix.RUBY_VERSION }},${{ matrix.RUBY_VERSION }}
subFolder: images/ruby
push: always
platform: linux/arm64,linux/amd64
platform: linux/amd64,linux/arm64

0 comments on commit 5d4716c

Please sign in to comment.