Skip to content

Commit

Permalink
Support ghcr.io registry for docker:push
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Feb 5, 2024
1 parent eb5ddae commit 19fb49e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,18 @@ namespace :docker do
ruby_version, tags = make_tags(ruby_version, version_suffix, tag_suffix)

tags.each do |tag|
if ENV['registry_name'].start_with?('ghcr.io')
docker_tag = tag.split("/").last
sh 'docker', 'tag', docker_tag, tag
end
sh 'docker', 'push', tag
end

each_nightly_tag(ruby_version, tags) do |_, tag|
if ENV['registry_name'].start_with?('ghcr.io')
docker_tag = tag.split("/").last
sh 'docker', 'tag', docker_tag, tag
end
sh 'docker', 'push', tag
end
end
Expand Down

0 comments on commit 19fb49e

Please sign in to comment.