-
Notifications
You must be signed in to change notification settings - Fork 39
50 lines (45 loc) · 1.54 KB
/
publish-new-ruby-versions.yaml
File metadata and controls
50 lines (45 loc) · 1.54 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
40
41
42
43
44
45
46
47
48
49
50
name: Build and Publish New Ruby Versions
on:
workflow_dispatch:
inputs:
ruby_versions:
type: string
required: true
description: "Comma or newline-separated Ruby versions (example: 3.3.1, 3.2.4)"
image_versions:
type: string
required: false
description: "Optional comma or newline-separated image versions (example: 1.1.0, 1.2.0 or ruby-1.1.0). If empty, latest ruby-* tag is used."
jobs:
setup:
name: Normalize Inputs
runs-on: ubuntu-24.04
outputs:
ruby_versions_json: ${{ steps.normalize.outputs.ruby_versions_json }}
image_versions_json: ${{ steps.normalize.outputs.image_versions_json }}
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v6
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: .ruby-version
- id: normalize
env:
RUBY_VERSIONS: ${{ github.event.inputs.ruby_versions }}
IMAGE_VERSIONS: ${{ github.event.inputs.image_versions }}
REPOSITORY: ${{ github.repository }}
run: bin/normalize-publish-inputs
publish:
name: Publish Images
needs: setup
uses: ./.github/workflows/publish-images-reusable.yaml
with:
ruby_versions_json: ${{ needs.setup.outputs.ruby_versions_json }}
image_versions_json: ${{ needs.setup.outputs.image_versions_json }}
repository_owner: ${{ github.repository_owner }}
secrets:
gh_token: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: read
packages: write