From 7c7540d2147c2634dae3286919eaca4fbeff0b65 Mon Sep 17 00:00:00 2001 From: driazati Date: Thu, 30 Jun 2022 13:46:28 -0700 Subject: [PATCH] [docker] Fall back to tlcpackstaging in bash.sh This uses #11775 to make local builds work if they're run in the meantime before CI tags over a new image to tlcpack --- docker/bash.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker/bash.sh b/docker/bash.sh index 18c655d2ddc5e..b7d34b45edc5c 100755 --- a/docker/bash.sh +++ b/docker/bash.sh @@ -290,7 +290,11 @@ DOCKER_DEVICES=( ) # If the user gave a shortcut defined in the Jenkinsfile, use it. EXPANDED_SHORTCUT=$(lookup_image_spec "${DOCKER_IMAGE_NAME}") if [ -n "${EXPANDED_SHORTCUT}" ]; then - DOCKER_IMAGE_NAME="${EXPANDED_SHORTCUT}" + python tests/scripts/determine_docker_images.py "$DOCKER_IMAGE_NAME=$EXPANDED_SHORTCUT" 2> /dev/null + DOCKER_IMAGE_NAME=$(cat ".docker-image-names/$DOCKER_IMAGE_NAME") + if [[ "$DOCKER_IMAGE_NAME" == *"tlcpackstaging"* ]]; then + echo "WARNING: resolved docker image to fallback tag in tlcpackstaging" >&2 + fi fi # Set up working directories