mastodon/container/push-containers.sh
2020-01-28 13:56:27 -06:00

24 lines
339 B
Bash
Executable file

#!/usr/bin/env bash
set -xe
TAG=$1
require_input() {
input=$1
name=$2
if [ "$input" == "" ]; then
echo "Input, $name, required but not present"
exit 1;
fi
}
require_input "$TAG" "container tag"
ARCHITECTURES=('arm64v8' 'amd64')
for arch in "${ARCHITECTURES[@]}"; do
docker push "$TAG:$arch"
done