Skip to content

Commit

Permalink
Merge pull request #129 from rake-compiler/flavorjones-ci-specify-oci…
Browse files Browse the repository at this point in the history
…-image-platform

ci: specify OCI image platform
  • Loading branch information
flavorjones authored Nov 10, 2024
2 parents c28c669 + 544f9c4 commit 3f71871
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -382,21 +382,27 @@ jobs:
matrix:
include:
- from_image: amd64/centos
image_platform: linux/amd64
platform: x86_64-linux # centos-8 ships ruby 2.5, rubygems won't recognize -gnu suffix
dockerfile: centos
- from_image: navikey/raspbian-bullseye
image_platform: linux/arm/v7
platform: arm-linux # bullseye ships ruby 2.7, rubygems won't recognize -gnu suffix
dockerfile: debian
- from_image: arm64v8/ubuntu
image_platform: linux/aarch64
platform: aarch64-linux # arm64v8 ships ruby 3.0, rubygems won't recognize -gnu suffix
dockerfile: debian
- from_image: i386/alpine
image_platform: linux/386
platform: x86-linux-musl
dockerfile: alpine
- from_image: arm32v6/alpine
image_platform: linux/arm/v6
platform: arm-linux-musl
dockerfile: alpine
- from_image: alpine
image_platform: linux/amd64
platform: x86_64-linux-musl
dockerfile: alpine
runs-on: ubuntu-latest
Expand All @@ -409,6 +415,6 @@ jobs:
- name: Build ${{ matrix.from_image }} image
run: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker build --rm --build-arg from_image=${{ matrix.from_image }} -t ruby-test -f test/env/Dockerfile.${{ matrix.dockerfile }} .
docker build --rm --build-arg from_image=${{ matrix.from_image }} --platform=${{ matrix.image_platform }} -t ruby-test -f test/env/Dockerfile.${{ matrix.dockerfile }} .
- name: Run tests
run: docker run --rm -t --network=host -v `pwd`:/build ruby-test

0 comments on commit 3f71871

Please sign in to comment.