20 lines
409 B
Ruby
20 lines
409 B
Ruby
require "mrsk/commands/base"
|
|
|
|
class Mrsk::Commands::Builder::Multiarch < Mrsk::Commands::Base
|
|
def create
|
|
docker :buildx, :create, "--use", "--name", "mrsk"
|
|
end
|
|
|
|
def remove
|
|
docker :buildx, :rm, "mrsk"
|
|
end
|
|
|
|
def push
|
|
docker :buildx, :build, "--push", "--platform linux/amd64,linux/arm64", "-t", config.absolute_image, "."
|
|
end
|
|
|
|
def pull
|
|
docker :pull, config.absolute_image
|
|
end
|
|
end
|