diff --git a/lib/kamal/commands/builder/native/pack.rb b/lib/kamal/commands/builder/native/pack.rb index d64b091a..f3e7d27a 100644 --- a/lib/kamal/commands/builder/native/pack.rb +++ b/lib/kamal/commands/builder/native/pack.rb @@ -2,7 +2,7 @@ class Kamal::Commands::Builder::Native::Pack < Kamal::Commands::Builder::Native def push combine \ pack(:build, - config.absolute_image, + config.repository, "--platform", platform, "--builder", pack_builder, buildpacks, diff --git a/test/commands/builder_test.rb b/test/commands/builder_test.rb index aae88919..2f6f86b1 100644 --- a/test/commands/builder_test.rb +++ b/test/commands/builder_test.rb @@ -54,10 +54,10 @@ class CommandsBuilderTest < ActiveSupport::TestCase end test "target pack when pack is set" do - builder = new_builder_command(builder: { "pack" => { "arch" => "amd64", "builder" => "heroku/builder:24", "buildpacks" => [ "heroku/ruby", "heroku/procfile" ] } }) + builder = new_builder_command(image: "dhh/app", builder: { "pack" => { "arch" => "amd64", "builder" => "heroku/builder:24", "buildpacks" => [ "heroku/ruby", "heroku/procfile" ] } }) assert_equal "native/pack", builder.name assert_equal \ - "pack build dhh/app:123 --platform linux/amd64 --builder heroku/builder:24 --buildpack heroku/ruby --buildpack heroku/procfile --buildpack paketo-buildpacks/image-labels -t dhh/app:123 -t dhh/app:latest --env BP_IMAGE_LABELS=service=app --path . && docker push dhh/app:123 && docker push dhh/app:latest", + "pack build dhh/app --platform linux/amd64 --builder heroku/builder:24 --buildpack heroku/ruby --buildpack heroku/procfile --buildpack paketo-buildpacks/image-labels -t dhh/app:123 -t dhh/app:latest --env BP_IMAGE_LABELS=service=app --path . && docker push dhh/app:123 && docker push dhh/app:latest", builder.push.join(" ") end