Add deploy script for storagenodes (#2889)

This commit is contained in:
Matt Robinson 2019-08-27 16:27:34 -04:00 committed by GitHub
parent c8405f6c2b
commit f404aad878
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,20 @@
#!/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
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 arm32v6
docker manifest push --purge storjlabs/storagenode:$v
done