Skip to content

Commit

Permalink
[docker] Fall back to tlcpackstaging in bash.sh (apache#11976)
Browse files Browse the repository at this point in the history
This uses apache#11775 to make local builds work if they're run in the meantime before CI tags over a new image to tlcpack

Co-authored-by: driazati <[email protected]>
  • Loading branch information
2 people authored and masahi committed Jul 15, 2022
1 parent 975ba86 commit e93a54c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docker/bash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,15 @@ 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}"
if [ "${CI+x}" == "true" ]; then
DOCKER_IMAGE_NAME="${EXPANDED_SHORTCUT}"
else
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
fi

# Set up working directories
Expand Down

0 comments on commit e93a54c

Please sign in to comment.