From: Vanessa Valderrama Date: Fri, 7 Oct 2022 17:24:26 +0000 (-0500) Subject: Fix: docker-push failure X-Git-Tag: v0.81.6^0 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=e2c560aa754635dee7b536ef4e96cc00b723107f;p=releng%2Fglobal-jjb.git Fix: docker-push failure Reomving the line break in the docker_push_command which is causing the variable to not be set properly. Signed-off-by: Vanessa Valderrama Change-Id: Icfefd02eda2ec225cb74e91ff4637457b907ac7f --- diff --git a/releasenotes/notes/fix-docker-push-4113e45cde55fc56.yaml b/releasenotes/notes/fix-docker-push-4113e45cde55fc56.yaml new file mode 100644 index 00000000..5474cfc4 --- /dev/null +++ b/releasenotes/notes/fix-docker-push-4113e45cde55fc56.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Remove line break in the docker_push_command variable + causing the varible to not be set properly diff --git a/shell/docker-push.sh b/shell/docker-push.sh index ee9b1b23..d8efac66 100644 --- a/shell/docker-push.sh +++ b/shell/docker-push.sh @@ -15,8 +15,7 @@ echo "---> docker-push.sh" set -ue -o pipefail docker --version echo "Pushing image: $CONTAINER_PUSH_REGISTRY/$DOCKER_NAME:$DOCKER_IMAGE_TAG" -docker_push_command="docker push " \ - "$CONTAINER_PUSH_REGISTRY/$DOCKER_NAME:$DOCKER_IMAGE_TAG" +docker_push_command="docker push $CONTAINER_PUSH_REGISTRY/$DOCKER_NAME:$DOCKER_IMAGE_TAG" echo "$docker_push_command" eval "$docker_push_command" echo "---> docker-push.sh ends"