storj/scripts/deploy-storagenode.sh
littleskunk 52cd33a633
scripts/deploy-storagenode: tag docker image as latest (#3858)
Co-authored-by: Ivan Fraixedes <ivan@fraixed.es>
2020-04-18 11:59:56 +02:00

25 lines
819 B
Bash
Executable File

#!/usr/bin/env bash
# Usage: TAG=6e8c4ed-v0.19.0-go1.12.9 scripts/deploy-storagenode.sh
set -euo pipefail
: "${TAG:?Must be set to the gitish version of the release without architecture}"
for v in alpha arm beta latest; do
docker manifest create --amend storjlabs/storagenode:$v \
storjlabs/storagenode:${TAG}-amd64 \
storjlabs/storagenode:${TAG}-arm32v6 \
storjlabs/storagenode:${TAG}-aarch64
docker manifest annotate storjlabs/storagenode:$v \
storjlabs/storagenode:${TAG}-amd64 --os linux --arch amd64
docker manifest annotate storjlabs/storagenode:$v \
storjlabs/storagenode:${TAG}-arm32v6 --os linux --arch arm --variant v6
docker manifest annotate storjlabs/storagenode:$v \
storjlabs/storagenode:${TAG}-aarch64 --os linux --arch arm64
docker manifest push --purge storjlabs/storagenode:$v
done