From e2c560aa754635dee7b536ef4e96cc00b723107f Mon Sep 17 00:00:00 2001 From: Vanessa Valderrama Date: Fri, 7 Oct 2022 12:24:26 -0500 Subject: [PATCH] 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 --- releasenotes/notes/fix-docker-push-4113e45cde55fc56.yaml | 5 +++++ shell/docker-push.sh | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/fix-docker-push-4113e45cde55fc56.yaml 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" -- 2.16.6