Mercurial > public > ssdt-docker
comparison scripts/updates-pull.sh @ 157:018f62da1931
DEP-12: add docker version. prevent pulling updates for dangling images
author | smith@nwoca.org |
---|---|
date | Mon, 31 Jul 2017 20:49:53 +0100 |
parents | 334d65dac778 |
children | fea886ba7279 |
comparison
equal
deleted
inserted
replaced
156:2f794158e9e8 | 157:018f62da1931 |
---|---|
16 FILTER=${2:-label=io.ssdt.app$APP} | 16 FILTER=${2:-label=io.ssdt.app$APP} |
17 while read -a line | 17 while read -a line |
18 do | 18 do |
19 repo=${line[0]} | 19 repo=${line[0]} |
20 tag=${line[1]} | 20 tag=${line[1]} |
21 if [[ $repo == docker.ssdt.io* ]] | 21 if [[ $repo == docker.ssdt.io* && $tag != *none* ]] |
22 then | 22 then |
23 echo "docker pull ${repo}:${tag}" | 23 echo "docker pull ${repo}:${tag}" |
24 docker pull ${repo}:${tag} | 24 docker pull ${repo}:${tag} |
25 fi | 25 fi |
26 done < <(docker images --filter "$FILTER") | 26 done < <(docker images --filter "$FILTER") |