Fixing quotes in the script
Change-Id: I87d33cf4e96bbec5885f8d88f502248e2f1f8def
diff --git a/developer/tag_and_push.sh b/developer/tag_and_push.sh
index 7ec0730..2267e8b 100644
--- a/developer/tag_and_push.sh
+++ b/developer/tag_and_push.sh
@@ -47,13 +47,14 @@
echo " "
# reading docker images
- DOCKER_IMAGES=$(docker images --format="{{.Repository}}:{{.Tag}}" --filter "dangling=false" | grep -v none)
+ DOCKER_IMAGES=$(docker images --format="{{.Repository}}:{{.Tag}}" --filter "dangling=false" | grep -v none | grep "xosproject")
# split string to list only on newlines
IFS=$'\n'
for image in $DOCKER_IMAGES;
do
- docker tag "$image $DOCKER_REGISTRY/$image"
+ echo "Tagging $image with $DOCKER_REGISTRY/$image"
+ docker tag "$image" "$DOCKER_REGISTRY/$image"
docker push "$DOCKER_REGISTRY/$image"
done
}