Skip to content

Commit

Permalink
Fixed tag name and condition for latest images
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jan 17, 2025
1 parent 6bfb427 commit db44271
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,11 @@ jobs:
- name: Push the same image without the ubuntu version
if: matrix.ubuntu_version == 'noble'
run: |-
docker tag rubylang/ruby:${{ env.ruby_version }}${{ matrix.image_version_suffix }}-${{ matrix.ubuntu_version }} rubylang/ruby:${{ env.ruby_version }}${{ matrix.image_version_suffix }}
docker push rubylang/ruby:${{ env.ruby_version }}${{ matrix.image_version_suffix }}
docker tag rubylang/ruby:${{ env.ruby_version }}${{ matrix.image_version_suffix }} ghcr.io/ruby/ruby:${{ env.ruby_version }}${{ matrix.image_version_suffix }}
docker push ghcr.io/ruby/ruby:${{ env.ruby_version }}${{ matrix.image_version_suffix }}
docker tag ${{ matrix.registry_name }}/ruby:${{ env.ruby_version }}${{ matrix.image_version_suffix }}-${{ matrix.ubuntu_version }} ${{ matrix.registry_name }}/ruby:${{ env.ruby_version }}${{ matrix.image_version_suffix }}
docker push ${{ matrix.registry_name }}/ruby:${{ env.ruby_version }}${{ matrix.image_version_suffix }}
- name: Push the latest image
if: matrix.ubuntu_version == 'nobel' && contains(${{ env.ruby_version }}, '3.4.') && matrix.image_version_suffix == ''
if: matrix.ubuntu_version == 'noble' && contains(${{ env.ruby_version }}, '3.4.') && matrix.image_version_suffix == ''
run: |-
docker tag rubylang/ruby:${{ env.ruby_version }} rubylang/ruby:latest
docker push rubylang/ruby:latest
docker tag rubylang/ruby:${{ env.ruby_version }} ghcr.io/ruby/ruby:latest
docker push ghcr.io/ruby/ruby:latest
docker tag ${{ matrix.registry_name }}/ruby:${{ env.ruby_version }} ${{ matrix.registry_name }}/ruby:latest
docker push ${{ matrix.registry_name }}/ruby:latest

0 comments on commit db44271

Please sign in to comment.