Allow for fully native builds too
Skipping multiarch if there's a platform match between dev and prod.
This commit is contained in:
19
lib/mrsk/commands/builder/multiarch.rb
Normal file
19
lib/mrsk/commands/builder/multiarch.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
Reference in New Issue
Block a user