Check properly for the base image

master
meskio 3 years ago
parent 4e6258c1e1
commit 9c28d49c02
Signed by: meskio
GPG Key ID: 52B8F5AC97A2DA86
  1. 3
      update_images

@ -4,8 +4,7 @@ base="{{ registry_domain }}/$1"
for image in `curl -s -X GET {{ registry }}/v2/_catalog | jq -r '.repositories[]'`
do
docker_from=`curl -s {{ repos_url }}/${image}/raw/branch/master/Dockerfile |grep FROM |awk '{ print $2 }'`
if [ "$base" = "$docker_from" ]
if [ ! -z "`curl -s {{ repos_url }}/${image}/raw/branch/master/Dockerfile |grep "FROM ${base}"`" ]
then
build_image $image
fi

Loading…
Cancel
Save