Skip to content

Commit

Permalink
Use cache path for commit hash same as CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Sep 25, 2024
1 parent 3d388cc commit 2ade871
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 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

0 comments on commit 2ade871

Please sign in to comment.