Add build args
This commit is contained in:
18
lib/mrsk/commands/builder/base.rb
Normal file
18
lib/mrsk/commands/builder/base.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
require "mrsk/commands/base"
|
||||
|
||||
class Mrsk::Commands::Builder::Base < Mrsk::Commands::Base
|
||||
delegate :argumentize, to: Mrsk::Configuration
|
||||
|
||||
def pull
|
||||
docker :pull, config.absolute_image
|
||||
end
|
||||
|
||||
def build_args
|
||||
argumentize "--build-args", args
|
||||
end
|
||||
|
||||
private
|
||||
def args
|
||||
config.builder["args"] || {}
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user