-
Notifications
You must be signed in to change notification settings - Fork 38
39 lines (34 loc) · 1.08 KB
/
publish-new-ruby-versions.yaml
File metadata and controls
39 lines (34 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Build and Publish New Ruby Versions
on:
workflow_dispatch:
inputs:
ruby_versions:
type: string
required: true
description: List of ruby versions to build. Should be an array ["3.3.1","3.2.4"]
image_versions:
type: string
required: true
description: List of image versions to build. Should be an array ["ruby-1.1.0"]
jobs:
build:
name: Build Images
strategy:
fail-fast: false
matrix:
RUBY_VERSION: ${{ fromJSON(github.event.inputs.ruby_versions)}}
IMAGE_VERSION: ${{ fromJSON(github.event.inputs.image_versions)}}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v6
- name: Build and Publish Image
uses: ./.github/actions/build-and-publish-image
with:
ruby_version: ${{ matrix.RUBY_VERSION }}
image_tag: ${{ matrix.IMAGE_VERSION }}
gh_token: ${{ secrets.GITHUB_TOKEN }}
repository_owner: ${{ github.repository_owner }}