Remove images of the same name before pulling a new one

Or you'll end up with untagged dupes.
This commit is contained in:
David Heinemeier Hansson
2023-02-20 18:06:16 +01:00
parent 9d6ccf9889
commit 42b343436d
4 changed files with 21 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ class Mrsk::Cli::Build < Mrsk::Cli::Base
def pull
on(MRSK.hosts) do
execute *MRSK.auditor.record("Pulled image with version #{MRSK.version}"), verbosity: :debug
execute *MRSK.builder.clean, raise_on_non_zero_exit: false
execute *MRSK.builder.pull
end
end