Use latest tag for the current destination

This commit is contained in:
Donal McBreen
2024-03-29 09:26:36 +00:00
parent bade195e93
commit fb7d9077ff
4 changed files with 9 additions and 5 deletions

View File

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