Catch up with main

This commit is contained in:
Nick Hammond
2025-01-20 09:53:16 -07:00
71 changed files with 1541 additions and 301 deletions

View File

@@ -87,6 +87,14 @@ class CommandsBuilderTest < ActiveSupport::TestCase
end
end
test "cloud builder" do
builder = new_builder_command(builder: { "arch" => [ "#{local_arch}" ], "driver" => "cloud docker-org-name/builder-name" })
assert_equal "cloud", builder.name
assert_equal \
"docker buildx build --push --platform linux/#{local_arch} --builder cloud-docker-org-name-builder-name -t dhh/app:123 -t dhh/app:latest --label service=\"app\" --file Dockerfile .",
builder.push.join(" ")
end
test "build args" do
builder = new_builder_command(builder: { "args" => { "a" => 1, "b" => 2 } })
assert_equal \