You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/contrib/ci/docker/rebuild-docker-images.sh

14 lines
287 B
Bash

#!/bin/bash
# the registry server to use
registry=$1
test "x$registry" != "x" || exit 1
for file in ${@:2} ; do
name="$(echo $file | cut -d'.' -f1)"
echo "rebuild $name"
docker build -f $file -t $registry/lokinet-ci-$name .
docker push $registry/lokinet-ci-$name
done