Ensure build args and secrets are used with pack

This commit is contained in:
Nick Hammond
2024-10-02 09:55:57 -07:00
parent 5482052e19
commit 89b44153bb
2 changed files with 19 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ class Kamal::Commands::Builder::Pack < Kamal::Commands::Builder::Base
"-t", config.absolute_image,
"-t", config.latest_image,
"--env", "BP_IMAGE_LABELS=service=#{config.service}",
*argumentize("--env", args),
*argumentize("--env", secrets, sensitive: true),
"--path", build_context),
docker(:push, config.absolute_image),