Fix aggressive prune breaking rollback

In the image prune command --all overrides --dangling=true. This removes
the image git sha image tag for the latest image which prevented
us from rolling back to it.

I've updated the integration test to now test deploy, redeploy and
rollback.
This commit is contained in:
Donal McBreen
2023-05-05 12:03:34 +01:00
parent 21110080d5
commit 326711a3e0
7 changed files with 73 additions and 14 deletions

View File

@@ -10,7 +10,7 @@ class CliPruneTest < CliTestCase
test "images" do
run_command("images").tap do |output|
assert_match /docker image prune --all --force --filter label=service=app --filter dangling=true on 1.1.1.\d/, output
assert_match /docker image prune --force --filter label=service=app --filter dangling=true on 1.1.1.\d/, output
end
end