view scripts/updates-pull.sh @ 539:5d5525414c8d production tip

update exec-all-projects-docker.sh to search for ./env/*-shared.properties in place of ./env/ssdt-*-shared.properties. ESS doesn't follow the same pattern for property file names.
author Marc Davis <marc.davis@mcoecn.org>
date Mon, 13 May 2024 13:28:30 -0400
parents fea886ba7279
children
line wrap: on
line source
#!/bin/bash
# 
# Pulls updates from upstream repository for images matching filter. The
# default filter pulls all ssdt application images.
#
# Usage:
#    pull-updates.sh [application] [filter]
#
#    defaults:
#      application=all applications
#      filter=label=io.ssdt.app[=application]
#
# Note: if filter is provided, the first argument is ignored. A complete filter must be supplied.
#
source "${SSDT_SCRIPTS:-$(dirname "${BASH_SOURCE[0]}")}/.functions.sh"

APP=${1:+=$1}
FILTER=${2:-label=io.ssdt.app$APP}
while read -a line
do
   repo=${line[0]}
   tag=${line[1]}
   if [[ $repo == docker.ssdt.io* && $tag != *none* ]]
   then
      echo "docker pull ${repo}:${tag}"
      docker pull ${repo}:${tag}
   fi
done <  <(docker images  --filter "$FILTER")