From 4b1b951b74a347e26eec919114e7d9999cb959bd Mon Sep 17 00:00:00 2001 From: Carlos Konstanski Date: Thu, 31 Oct 2019 11:47:10 -0600 Subject: change tag to LATEST --- bootstrap/pillar_config.rb | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'bootstrap/pillar_config.rb') diff --git a/bootstrap/pillar_config.rb b/bootstrap/pillar_config.rb index 44fa02c..6fb94cc 100755 --- a/bootstrap/pillar_config.rb +++ b/bootstrap/pillar_config.rb @@ -7,21 +7,13 @@ require "json" require "socket" require "yaml" -def sha() - seed = "" - File.open("/dev/urandom", "r") do |f| - seed = "#{f.sysread(24)}" - end - Digest::SHA1.hexdigest(seed) -end - def process_yaml(build_basedir, local_build) env_yaml_path = "#{File.dirname($0)}/config.yaml" if ! File.file?(env_yaml_path) STDERR.puts "Unable to find config.yaml. Exiting." exit(1) end - tag = sha()[0..23] + tag = "latest" yml = YAML.load_file(env_yaml_path) yml["gentoo_baseimage"] = {} yml["gentoo_baseimage"]["image_name"] = "gentoo_baseimage" -- cgit v1.3