From: Rafael dos Santos Silva Date: Thu, 2 Feb 2017 02:23:49 +0000 (-0200) Subject: Let's try busting the cache X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7ead2337f8fe771deaef2157ad0c4eeb51b744e7;p=discourse_docker.git Let's try busting the cache --- diff --git a/image/auto_build.rb b/image/auto_build.rb index 1132aa5..5e1e2d6 100644 --- a/image/auto_build.rb +++ b/image/auto_build.rb @@ -29,7 +29,7 @@ def run(command) end def build(image) - lines = run("cd #{image[:name]} && docker build . --tag #{image[:tag] + VERSION} #{image[:squash] ? '#--squash' : ''}") + lines = run("cd #{image[:name]} && docker build . --no-cache --tag #{image[:tag] + VERSION} #{image[:squash] ? '#--squash' : ''}") raise "Error building the image for #{image[:name]}: #{lines[-1]}" if lines[-1] =~ /successfully built/ run("docker tag #{image[:tag] + VERSION} #{image[:tag]}release") end