From 137bab2b7d9677e30c0351904570bcaea59bad0e Mon Sep 17 00:00:00 2001 From: Chengyou Liu <35356271+cyliu0@users.noreply.github.com> Date: Tue, 2 Apr 2024 18:40:23 +0800 Subject: [PATCH] fix: image tag when using api trigger the pipeline (#16089) --- ci/scripts/multi-arch-docker.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/scripts/multi-arch-docker.sh b/ci/scripts/multi-arch-docker.sh index e71e1e6f231e6..dd61fab27eba5 100755 --- a/ci/scripts/multi-arch-docker.sh +++ b/ci/scripts/multi-arch-docker.sh @@ -74,8 +74,8 @@ if [ "${BUILDKITE_SOURCE}" == "schedule" ]; then pushGchr ${TAG} fi -if [ "${BUILDKITE_SOURCE}" == "ui" ] && [[ -n "${IMAGE_TAG+x}" ]]; then - # If this is a ui build, tag the image with the $imagetag. +if [[ -n "${IMAGE_TAG+x}" ]]; then + # Tag the image with the $IMAGE_TAG. TAG="${IMAGE_TAG}" pushGchr ${TAG} fi