storj/scripts/deploy-storagenode.sh
Matt Robinson 1b2a2d045f
[build]: Adjust arm63v6 and aarch64 images to match convention (#2845)
* Adjust arm32v6 and aarch64 docker images to match the hello-world image

* Update from master, fix potential bug in push-images target, and update storagenode deploy to handle arm64 image
2019-08-28 08:18:56 -04:00

25 lines
804 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; do
docker manifest create 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