summaryrefslogtreecommitdiffstats
path: root/ci/images/update.sh
blob: 7be51727a161fbf5ec2fbd002b74b9f34d8a9f62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# build and upload docker image(s) into registry
#
# this is a simple wrapper around build.sh and update.sh
#
# to build & upload all images: ./update.sh */

if [[ $# -le 0 ]]; then
    echo "usage: $0 IMAGE..."
    exit 1
fi
set -e

for ARG in "$@"
do
    IMAGE=${ARG%/}
    echo "Building $IMAGE..."
    ./build.sh $IMAGE
    echo "Pushing $IMAGE..."
    ./push.sh $IMAGE
done