Enable experimental squash
authorRafael dos Santos Silva <xfalcox@gmail.com>
Mon, 13 Feb 2017 17:14:22 +0000 (15:14 -0200)
committerRafael dos Santos Silva <xfalcox@gmail.com>
Mon, 13 Feb 2017 17:14:22 +0000 (15:14 -0200)
image/auto_build.rb

index 6349aa2170e485791721f4ac2adadec8089a70d9..f7502c3179e2cb8948a6639b938b4d9ee05444bc 100644 (file)
@@ -26,7 +26,7 @@ def run(command)
 end
 
 def build(image)
-  lines = run("cd #{image[:name]} && docker build . --no-cache --tag #{image[:tag]} #{image[:squash] ? '#--squash' : ''}")
+  lines = run("cd #{image[:name]} && docker build . --no-cache --tag #{image[:tag]} #{image[:squash] ? '--squash' : ''}")
   raise "Error building the image for #{image[:name]}: #{lines[-1]}" if lines[-1] =~ /successfully built/
 end