Merge pull request #748 from basecamp/latest-by-tag

Latest by tag
This commit is contained in:
Donal McBreen
2024-04-03 09:11:03 +01:00
committed by GitHub
10 changed files with 100 additions and 62 deletions

View File

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