Inroduce Native::Cached builder

This commit is contained in:
Igor Alexandrov
2023-06-18 22:45:04 +04:00
parent 4df3389d09
commit aa28ee0f3e
4 changed files with 41 additions and 26 deletions

View File

@@ -0,0 +1,16 @@
class Mrsk::Commands::Builder::Native::Cached < Mrsk::Commands::Builder::Native
def create
docker :buildx, :create, "--use", "--driver=docker-container"
end
def remove
docker :buildx, :rm, builder_name
end
def push
docker :buildx, :build,
"--push",
*build_options,
build_context
end
end