Skip to content

Commit 965e805

Browse files
committed
test(e2e): use loaded image tag with v0.5.11
1 parent 217bf06 commit 965e805

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • test-suites/full-stack-compose/scripts

test-suites/full-stack-compose/scripts/runner.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,10 +555,14 @@ assert_gateway_dns_credential_usable() {
555555
}
556556

557557
render_app() {
558-
local label=$1 mode=$2 meta app_id hash
558+
local label=$1 mode=$2 meta app_id hash image_ref=$APP_IMAGE_ID
559+
# The v0.5.11 Docker Compose treats a local image ID (`sha256:...`) as a
560+
# repository name and tries to pull it. The pre-launch script has already
561+
# loaded the digest-recorded archive under its original tag.
562+
[[ "$mode" == auto ]] && image_ref=$APP_IMAGE
559563
meta=$(/suite/scripts/app_compose.py nginx \
560564
--name "${APP_NAME}-${label}" \
561-
--image-ref "$APP_IMAGE_ID" \
565+
--image-ref "$image_ref" \
562566
--image-archive app.tar \
563567
--artifact-port "$ARTIFACT_PORT" \
564568
--attestation-mode "$mode" \

0 commit comments

Comments
 (0)