Sha256: 49163749d8dec75de5f42966d32d4e2f5f65cf6a9c9ac0cc1ac94aaad2f920fa

Contents?: true

Size: 1.57 KB

Versions: 16

Compression:

Stored size: 1.57 KB

Contents

# frozen_string_literal: true

require 'rake_factory'
require 'docker'

require_relative '../tasks'

module RakeDocker
  module TaskSets
    class Image < RakeFactory::TaskSet
      prepend RakeFactory::Namespaceable

      parameter :image_name, required: true
      parameter :repository_name, required: true
      parameter :repository_url, required: true

      parameter :work_directory, required: true

      parameter :copy_spec, default: []
      parameter :create_spec, default: []

      parameter :argument_names, default: []

      parameter :tags, required: true

      parameter :credentials

      parameter :build_args
      parameter :platform

      parameter :clean_task_name, default: :clean
      parameter :prepare_task_name, default: :prepare
      parameter :build_task_name, default: :build
      parameter :tag_task_name, default: :tag
      parameter :push_task_name, default: :push
      parameter :publish_task_name, default: :publish

      task Tasks::Clean, name: RakeFactory::DynamicValue.new { |ts|
        ts.clean_task_name
      }
      task Tasks::Prepare, name: RakeFactory::DynamicValue.new { |ts|
        ts.prepare_task_name
      }
      task Tasks::Build, name: RakeFactory::DynamicValue.new { |ts|
        ts.build_task_name
      }
      task Tasks::Tag, name: RakeFactory::DynamicValue.new { |ts|
        ts.tag_task_name
      }
      task Tasks::Push, name: RakeFactory::DynamicValue.new { |ts|
        ts.push_task_name
      }
      task Tasks::Publish, name: RakeFactory::DynamicValue.new { |ts|
        ts.publish_task_name
      }
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rake_docker-2.22.0.pre.3 lib/rake_docker/task_sets/image.rb
rake_docker-2.22.0.pre.2 lib/rake_docker/task_sets/image.rb
rake_docker-2.22.0.pre.1 lib/rake_docker/task_sets/image.rb
rake_docker-2.21.0 lib/rake_docker/task_sets/image.rb
rake_docker-2.20.0.pre.8 lib/rake_docker/task_sets/image.rb
rake_docker-2.20.0.pre.7 lib/rake_docker/task_sets/image.rb
rake_docker-2.20.0.pre.6 lib/rake_docker/task_sets/image.rb
rake_docker-2.20.0.pre.5 lib/rake_docker/task_sets/image.rb
rake_docker-2.20.0.pre.4 lib/rake_docker/task_sets/image.rb
rake_docker-2.20.0.pre.3 lib/rake_docker/task_sets/image.rb
rake_docker-2.20.0.pre.2 lib/rake_docker/task_sets/image.rb
rake_docker-2.20.0.pre.1 lib/rake_docker/task_sets/image.rb
rake_docker-2.19.0 lib/rake_docker/task_sets/image.rb
rake_docker-2.18.0.pre.6 lib/rake_docker/task_sets/image.rb
rake_docker-2.18.0.pre.5 lib/rake_docker/task_sets/image.rb
rake_docker-2.18.0.pre.4 lib/rake_docker/task_sets/image.rb