Skip to content

Commit

Permalink
Merge pull request #106 from ruby/refactor-image-build
Browse files Browse the repository at this point in the history
Fix flaky image build
  • Loading branch information
hsbt authored Sep 25, 2024
2 parents bd0bcf1 + 2ade871 commit 4691316
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ namespace :docker do
end

def get_ruby_master_head_hash
# Use the same hash throughout the same CircleCI job
if ENV.key?('CIRCLE_BUILD_NUM') && File.exist?(cache_path = "/tmp/ruby-docker-images.#{ENV['CIRCLE_BUILD_NUM']}")
if File.exist?(cache_path = "/tmp/ruby-docker-images")
return File.read(cache_path)
end

Expand Down Expand Up @@ -235,8 +234,6 @@ namespace :docker do
end
version_suffix = ENV["image_version_suffix"]
tag_suffix = ENV["tag_suffix"]
tag = ENV["tag"] || ""
target = ENV.fetch("target", "ruby")
ruby_version, tags = make_tags(ruby_version, version_suffix, tag_suffix)

tags.each do |tag|
Expand All @@ -259,7 +256,6 @@ namespace :docker do
namespace :manifest do
task :create do
ruby_version = ENV.fetch("ruby_version")
ubuntu_version = ENV.fetch("ubuntu_version")
architectures = ENV.fetch("architectures").split(' ')
manifest_suffix = ENV.fetch("manifest_suffix", nil)
image_version_suffix = ENV["image_version_suffix"]
Expand Down

0 comments on commit 4691316

Please sign in to comment.