Fix: docker-push failure 37/70837/2 v0.81.6
authorVanessa Valderrama <vvalderrama@linuxfoundation.org>
Fri, 7 Oct 2022 17:24:26 +0000 (12:24 -0500)
committerVanessa Valderrama <vvalderrama@linuxfoundation.org>
Fri, 7 Oct 2022 20:04:10 +0000 (15:04 -0500)
Reomving the line break in the docker_push_command which is
causing the variable to not be set properly.

Signed-off-by: Vanessa Valderrama <vvalderrama@linuxfoundation.org>
Change-Id: Icfefd02eda2ec225cb74e91ff4637457b907ac7f

releasenotes/notes/fix-docker-push-4113e45cde55fc56.yaml [new file with mode: 0644]
shell/docker-push.sh

diff --git a/releasenotes/notes/fix-docker-push-4113e45cde55fc56.yaml b/releasenotes/notes/fix-docker-push-4113e45cde55fc56.yaml
new file mode 100644 (file)
index 0000000..5474cfc
--- /dev/null
@@ -0,0 +1,5 @@
+---
+fixes:
+  - |
+    Remove line break in the docker_push_command variable
+    causing the varible to not be set properly
index ee9b1b2..d8efac6 100644 (file)
@@ -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"