chore: add helper script for pushing images (#233)

This commit is contained in:
Andrew Rynhard 2018-11-28 17:08:54 -08:00 committed by GitHub
parent a2d079e805
commit d379fb213e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

18
hack/push.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
set -e
DEFAULT_REPO="autonomy"
REPO="${1}"
TAG="${2}"
images=( trustd proxyd blockd osd talos )
for i in ${images[@]}; do
if [ "${REPO}" != "${DEFAULT_REPO}" ]; then
docker tag ${DEFAULT_REPO}/${i}:${TAG} ${REPO}/${i}:${TAG}
fi
docker push ${REPO}/${i}:${TAG}
done