Allow logging out of registry
This commit is contained in:
@@ -2,4 +2,8 @@ class Mrsk::Commands::Registry < Mrsk::Commands::Base
|
||||
def login
|
||||
"docker login #{config.registry["server"]} -u #{config.registry["username"]} -p #{config.registry["password"]}"
|
||||
end
|
||||
|
||||
def logout
|
||||
"docker logout #{config.registry["server"]}"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -9,5 +9,10 @@ namespace :mrsk do
|
||||
run_locally { execute registry.login }
|
||||
on(MRSK_CONFIG.servers) { execute registry.login }
|
||||
end
|
||||
|
||||
desc "Logout of the registry remotely"
|
||||
task :logout do
|
||||
on(MRSK_CONFIG.servers) { execute registry.logout }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user