Class: Minke::Tasks::Push
Instance Method Summary collapse
Methods inherited from Task
#build_address, #copy_assets, #execute_rake_tasks, #initialize, #load_consul_data, #log, #run_command_in_container, #run_steps, #run_with_block, #wait_for_health_check
Constructor Details
This class inherits a constructor from Minke::Tasks::Task
Instance Method Details
#run(args = nil) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/minke/tasks/push.rb', line 5 def run args = nil puts "## Push image to registry" url = @config.docker_registry.url user = @config.docker_registry.user password = @config.docker_registry.password email = @config.docker_registry.email namespace = @config.docker_registry.namespace image_tag = "#{namespace}/#{@config.application_name}" @docker_runner.login_registry url, user, password, email @docker_runner.tag_image @config.application_name, image_tag @docker_runner.push_image image_tag end |