Skip to content

Merge pull request #118 from ruby/dependabot/github_actions/actions/c… #112

Merge pull request #118 from ruby/dependabot/github_actions/actions/c…

Merge pull request #118 from ruby/dependabot/github_actions/actions/c… #112

Workflow file for this run

name: Test to build Docker image
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
name: ${{ matrix.ruby_version }}-${{ matrix.ubuntu_version }} ${{ matrix.arch }}
runs-on: ${{ matrix.arch == 'arm64' && 'ubuntu-24.04-arm' || 'ubuntu-24.04' }}
strategy:
matrix:
ubuntu_version:
- noble
- jammy
- focal
ruby_version:
- 3.1.6
- 3.2.4
- 3.3.3
arch:
- amd64
- arm64
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Build image
run: |
rake docker:build arch=${{ matrix.arch }} ruby_version=${{ matrix.ruby_version }} ubuntu_version=${{ matrix.ubuntu_version }}
- name: Check image
run: |
docker images
docker run rubylang/ruby:${{ matrix.ruby_version }}-${{ matrix.ubuntu_version }} ruby -v