Sha256: ee61be7452676f2c73612d1269c7535bd2581a1ad39a6dd4f0df5ffe8eeddb56

Contents?: true

Size: 635 Bytes

Versions: 27

Compression:

Stored size: 635 Bytes

Contents

module Minke
  module Tasks
    class Push < Task

      def run args = nil
        @logger.info "## 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

27 entries across 27 versions & 1 rubygems

Version Path
minke-1.15.0 lib/minke/tasks/push.rb
minke-1.14.5 lib/minke/tasks/push.rb
minke-1.14.4 lib/minke/tasks/push.rb
minke-1.14.3 lib/minke/tasks/push.rb
minke-1.14.2 lib/minke/tasks/push.rb
minke-1.14.1 lib/minke/tasks/push.rb
minke-1.14.0 lib/minke/tasks/push.rb
minke-1.13.20 lib/minke/tasks/push.rb
minke-1.13.19 lib/minke/tasks/push.rb
minke-1.13.18 lib/minke/tasks/push.rb
minke-1.13.16 lib/minke/tasks/push.rb
minke-1.13.15 lib/minke/tasks/push.rb
minke-1.13.14 lib/minke/tasks/push.rb
minke-1.13.13 lib/minke/tasks/push.rb
minke-1.13.12 lib/minke/tasks/push.rb
minke-1.13.11 lib/minke/tasks/push.rb
minke-1.13.10 lib/minke/tasks/push.rb
minke-1.13.9 lib/minke/tasks/push.rb
minke-1.13.8 lib/minke/tasks/push.rb
minke-1.13.7 lib/minke/tasks/push.rb