File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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 }}
You can’t perform that action at this time.
0 commit comments