Sha256: a2c5a5b526637ac62fec43d2a0422e4af0aeebef39a44291ab28fc3f06c0d7fd
Contents?: true
Size: 643 Bytes
Versions: 2
Compression:
Stored size: 643 Bytes
Contents
# frozen_string_literal: true module ContainerShip module Command module Modules module Docker 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 private def sh(command) status = nil Open3.popen3(command) do |_i, o, _e, w| o.each { |line| puts line } status = w.value end exit(status.exitstatus) unless status.success? end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
container_ship-0.1.2 | lib/container_ship/command/modules/docker.rb |
container_ship-0.1.1 | lib/container_ship/command/modules/docker.rb |