Sha256: 864fa0fca5aafcfc864ff84e1c649df066f29dd7c846449b4a14f4baf0d9d00d

Contents?: true

Size: 627 Bytes

Versions: 58

Compression:

Stored size: 627 Bytes

Contents

module Minke
  module Tasks
    class Push < Task

      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

    end
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
minke-1.12.9 lib/minke/tasks/push.rb
minke-1.12.8 lib/minke/tasks/push.rb
minke-1.12.7 lib/minke/tasks/push.rb
minke-1.12.5 lib/minke/tasks/push.rb
minke-1.12.4 lib/minke/tasks/push.rb
minke-1.12.3 lib/minke/tasks/push.rb
minke-1.12.2 lib/minke/tasks/push.rb
minke-1.12.0 lib/minke/tasks/push.rb
minke-1.11.9 lib/minke/tasks/push.rb
minke-1.11.8 lib/minke/tasks/push.rb
minke-1.11.7 lib/minke/tasks/push.rb
minke-1.11.6 lib/minke/tasks/push.rb
minke-1.11.5 lib/minke/tasks/push.rb
minke-1.11.4 lib/minke/tasks/push.rb
minke-1.11.3 lib/minke/tasks/push.rb
minke-1.11.2 lib/minke/tasks/push.rb
minke-1.11.1 lib/minke/tasks/push.rb
minke-1.11.0 lib/minke/tasks/push.rb
minke-1.10.0 lib/minke/tasks/push.rb
minke-1.9.9 lib/minke/tasks/push.rb