From 90b1720da8349d59090e99232b0bdc0207e3078c Mon Sep 17 00:00:00 2001 From: Arvid Jakobsson Date: Thu, 25 May 2023 09:11:00 +0200 Subject: [PATCH] CI: handle missing variables gracefully in [docker_registry_auth.sh] These variables are set when building the images in the jobs, but they are not otherwise. They do not actually impact docker registry authentication, they are only used here for debug output. Therefore, their absence is not an error. --- scripts/ci/docker_registry_auth.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ci/docker_registry_auth.sh b/scripts/ci/docker_registry_auth.sh index 4c29ae8dfdab..e015acf52ccc 100755 --- a/scripts/ci/docker_registry_auth.sh +++ b/scripts/ci/docker_registry_auth.sh @@ -27,8 +27,8 @@ echo "CI_DOCKER_HUB=${CI_DOCKER_HUB:-}" echo "CI_PROJECT_NAME=${CI_PROJECT_NAME}" echo "CI_PROJECT_NAMESPACE=${CI_PROJECT_NAMESPACE}" echo "IMAGE_ARCH_PREFIX=${IMAGE_ARCH_PREFIX:-}" -echo "DOCKER_BUILD_TARGET=${DOCKER_BUILD_TARGET}" -echo "RUST_TOOLCHAIN_IMAGE=${RUST_TOOLCHAIN_IMAGE}" +echo "DOCKER_BUILD_TARGET=${DOCKER_BUILD_TARGET:-}" +echo "RUST_TOOLCHAIN_IMAGE=${RUST_TOOLCHAIN_IMAGE:-}" # CI_DOCKER_HUB is used to switch to Docker Hub if credentials are available with CI_DOCKER_AUTH # /!\ CI_DOCKER_HUB can be unset, CI_DOCKER_AUTH is only available on protected branches -- GitLab