@@ -467,6 +467,39 @@ exit 1'
467467 grep -q -- " --external" " $CONVOX_CALLS "
468468}
469469
470+ @test " build: each buildArgs pair is passed as a separate --build-args flag" {
471+ # argc assertion proves both pairs arrive as separate --build-args flags.
472+ stub_convox ' echo "argc=$#" >> "$CONVOX_CALLS"; echo R123'
473+ export INPUT_APP=" my-app"
474+ export INPUT_RACK=" my-rack"
475+ export INPUT_DESCRIPTION=" test-desc"
476+ export INPUT_BUILDARGS=" FOO=1 BAR=2"
477+
478+ run sh entrypoint-build.sh
479+
480+ [ " $status " -eq 0 ]
481+ # argv: build --app my-app --description test-desc --id --build-args FOO=1 --build-args BAR=2 = 10
482+ grep -q " ^argc=10$" " $CONVOX_CALLS "
483+ grep -F -q " FOO=1" " $CONVOX_CALLS "
484+ grep -F -q " BAR=2" " $CONVOX_CALLS "
485+ }
486+
487+ @test " deploy: each buildArgs pair is passed as a separate --build-args flag" {
488+ stub_convox ' echo "argc=$#" >> "$CONVOX_CALLS"'
489+ export INPUT_APP=" my-app"
490+ export INPUT_RACK=" my-rack"
491+ export INPUT_DESCRIPTION=" test-desc"
492+ export INPUT_BUILDARGS=" FOO=1 BAR=2"
493+
494+ run sh entrypoint-deploy.sh
495+
496+ [ " $status " -eq 0 ]
497+ # argv: deploy --app my-app --description test-desc --build-args FOO=1 --build-args BAR=2 --wait = 10
498+ grep -q " ^argc=10$" " $CONVOX_CALLS "
499+ grep -F -q " FOO=1" " $CONVOX_CALLS "
500+ grep -F -q " BAR=2" " $CONVOX_CALLS "
501+ }
502+
470503# ---------------------------------------------------------------------------
471504# GITHUB_OUTPUT / GITHUB_ENV channel split (plan 009)
472505# ---------------------------------------------------------------------------
0 commit comments