Files
kamal/lib/kamal/commands/registry.rb
Pavel Shpak b5aee11a40 [Feature] Add optional accessory registry.
Add test cases to cover new option.
2024-12-22 02:50:53 +02:00

17 lines
479 B
Ruby

class Kamal::Commands::Registry < Kamal::Commands::Base
def login(registry_config: nil)
registry_config ||= config.registry
docker :login,
registry_config.server,
"-u", sensitive(Kamal::Utils.escape_shell_value(registry_config.username)),
"-p", sensitive(Kamal::Utils.escape_shell_value(registry_config.password))
end
def logout(registry_config: nil)
registry_config ||= config.registry
docker :logout, registry_config.server
end
end