Tag image after booting and include destination

If you are deploying more than one destination to a host, the latest
tags will conflict, so we'll append the destination to the tag.

The latest tag is used when booting the app or exec-ing a new container.

If a deploy doesn't complete on a host for all roles then we should
probably not be using it, so move the tagging to the end of the boot
process.
This commit is contained in:
Donal McBreen
2024-03-27 16:25:39 +00:00
parent 8bb596e216
commit 55dd2f49c1
5 changed files with 7 additions and 13 deletions

View File

@@ -128,7 +128,7 @@ class Kamal::Configuration
end
def latest_image
"#{repository}:latest"
"#{repository}:#{[ "latest", *destination ].join("-")}"
end
def service_with_version