File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 11name : Build and Publish Images
22
33on :
4- workflow_dispatch :
4+ push :
5+ tags : [ 'ruby-*.*.*' ]
56
67jobs :
78 build :
4445 with :
4546 platforms : linux/amd64,linux/arm64
4647
48+ - name : Set Image version env variable
49+ run : echo "IMAGE_VERSION=$(echo ${{ github.ref_name }} | tr -d ruby-)" >> $GITHUB_ENV
50+
4751 - name : Login to GitHub Container Registry
4852 uses : docker/login-action@v2
4953 with :
5862 BUILDX_NO_DEFAULT_ATTESTATIONS : true
5963 with :
6064 imageName : ghcr.io/rails/devcontainer/images/ruby
61- imageTag : 0.3.0 -${{ matrix.RUBY_VERSION }},${{ matrix.RUBY_VERSION }}
65+ imageTag : ${{ env.IMAGE_VERSION }} -${{ matrix.RUBY_VERSION }},${{ matrix.RUBY_VERSION }}
6266 subFolder : images/ruby
6367 push : always
6468 platform : linux/amd64,linux/arm64
You can’t perform that action at this time.
0 commit comments