openstack-helm/tools/pull-images.sh
intlabs 4d0492a9fc Image puller: fix user and location in gate.
This PS fixes the location of the image pull command in the gate
and also moves the position it is run at to after docker is
installed.

Change-Id: I45573ae18147a44e99698bfac208fe1f2dcf6128
2017-11-14 19:23:45 +00:00

10 lines
282 B
Bash
Executable File

#!/bin/bash
set -x
for CHART_DIR in ./*/ ; do
if [ -e ${CHART_DIR}values.yaml ]; then
for IMAGE in $(cat ${CHART_DIR}values.yaml | yq '.images.tags | map(.) | join(" ")' | tr -d '"'); do
sudo docker inspect $IMAGE >/dev/null|| sudo docker pull $IMAGE
done
fi
done