Skip to content

Commit a0f4f68

Browse files
baelterdentarg
andauthored
Build Ruby images for multiple versions (#1)
Co-authored-by: Patrik Ragnarsson <patrik@starkast.net>
1 parent 3bd8667 commit a0f4f68

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

.github/workflows/ruby.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ jobs:
2020
permissions:
2121
contents: read
2222
packages: write
23+
strategy:
24+
matrix:
25+
ruby-version:
26+
- "3.3.10"
27+
- "3.4.8"
28+
- "4.0.1"
2329
steps:
2430
- uses: actions/checkout@v6
2531

@@ -30,17 +36,9 @@ jobs:
3036
username: ${{ github.actor }}
3137
password: ${{ secrets.GITHUB_TOKEN }}
3238

33-
- uses: docker/metadata-action@v6
34-
id: meta
35-
with:
36-
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
37-
tags: |
38-
type=raw,value=latest,enable={{is_default_branch}}
39-
type=sha
40-
4139
- uses: docker/build-push-action@v7
4240
with:
4341
context: ruby
42+
build-args: RUBY_VERSION=${{ matrix.ruby-version }}
4443
push: ${{ github.event_name != 'pull_request' }}
45-
tags: ${{ steps.meta.outputs.tags }}
46-
labels: ${{ steps.meta.outputs.labels }}
44+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.ruby-version }}

0 commit comments

Comments
 (0)