Mercurial > public > ssdt-docker
annotate scripts/updates-pull.sh @ 596:652e0b0552b1 production v2.21.0
flow: Merged <release> '2.21.0' to <master> ('production').
author | Marc Davis <marc.davis@mcoecn.org> |
---|---|
date | Tue, 17 Sep 2024 08:22:06 -0400 |
parents | 9afc8cb478f6 |
children |
rev | line source |
---|---|
54 | 1 #!/bin/bash |
49 | 2 # |
3 # Pulls updates from upstream repository for images matching filter. The | |
4 # default filter pulls all ssdt application images. | |
5 # | |
6 # Usage: | |
7 # pull-updates.sh [application] [filter] | |
8 # | |
9 # defaults: | |
10 # application=all applications | |
11 # filter=label=io.ssdt.app[=application] | |
12 # | |
13 # Note: if filter is provided, the first argument is ignored. A complete filter must be supplied. | |
14 # | |
191
fea886ba7279
DEP-12: add source for .functions.sh to all scripts using compose
smith@nwoca.org
parents:
157
diff
changeset
|
15 source "${SSDT_SCRIPTS:-$(dirname "${BASH_SOURCE[0]}")}/.functions.sh" |
fea886ba7279
DEP-12: add source for .functions.sh to all scripts using compose
smith@nwoca.org
parents:
157
diff
changeset
|
16 |
49 | 17 APP=${1:+=$1} |
18 FILTER=${2:-label=io.ssdt.app$APP} | |
19 while read -a line | |
20 do | |
21 repo=${line[0]} | |
22 tag=${line[1]} | |
574
9afc8cb478f6
Domain changed from ssdt.io to ssdt-ohio.org
Marc Davis <marc.davis@mcoecn.org>
parents:
191
diff
changeset
|
23 if [[ $repo == docker.ssdt-ohio.org* && $tag != *none* ]] |
49 | 24 then |
25 echo "docker pull ${repo}:${tag}" | |
26 docker pull ${repo}:${tag} | |
27 fi | |
28 done < <(docker images --filter "$FILTER") |