Module: ContainerShip::Command::Modules::Docker

Included in:
ExecCommand, ShipCommand
Defined in:
lib/container_ship/command/modules/docker.rb

Instance Method Summary collapse

Instance Method Details

#push_image(task_definition) ⇒ Object



7
8
9
10
# File 'lib/container_ship/command/modules/docker.rb', line 7

def push_image(task_definition)
  sh "docker build -t \"#{task_definition.image_name}:#{task_definition.build_number}\" ."
  sh "docker push #{task_definition.image_name}:#{task_definition.build_number}"
end