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.
14 lines
283 B
Ruby
14 lines
283 B
Ruby
module Kamal::Commands::App::Images
|
|
def list_images
|
|
docker :image, :ls, config.repository
|
|
end
|
|
|
|
def remove_images
|
|
docker :image, :prune, "--all", "--force", *filter_args
|
|
end
|
|
|
|
def tag_latest_image
|
|
docker :tag, config.absolute_image, config.latest_image
|
|
end
|
|
end
|