2019-08-27 21:27:34 +01:00
|
|
|
#!/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}"
|
|
|
|
|
2020-04-18 10:59:56 +01:00
|
|
|
for v in alpha arm beta latest; do
|
2022-02-21 13:37:04 +00:00
|
|
|
for app in multinode storagenode; do
|
|
|
|
docker manifest create --amend storjlabs/$app:$v \
|
|
|
|
storjlabs/$app:${TAG}-amd64 \
|
2022-06-17 12:19:27 +01:00
|
|
|
storjlabs/$app:${TAG}-arm32v5 \
|
2022-02-21 13:37:04 +00:00
|
|
|
storjlabs/$app:${TAG}-arm64v8
|
2019-08-27 21:27:34 +01:00
|
|
|
|
2022-02-21 13:37:04 +00:00
|
|
|
docker manifest annotate storjlabs/$app:$v \
|
|
|
|
storjlabs/$app:${TAG}-amd64 --os linux --arch amd64
|
2019-08-27 21:27:34 +01:00
|
|
|
|
2022-02-21 13:37:04 +00:00
|
|
|
docker manifest annotate storjlabs/$app:$v \
|
2022-06-17 12:19:27 +01:00
|
|
|
storjlabs/$app:${TAG}-arm32v5 --os linux --arch arm --variant v5
|
2019-08-28 13:18:56 +01:00
|
|
|
|
2022-02-21 13:37:04 +00:00
|
|
|
docker manifest annotate storjlabs/$app:$v \
|
|
|
|
storjlabs/$app:${TAG}-arm64v8 --os linux --arch arm64 --variant v8
|
2019-08-27 21:27:34 +01:00
|
|
|
|
2022-02-21 13:37:04 +00:00
|
|
|
docker manifest push --purge storjlabs/$app:$v
|
|
|
|
done
|
2019-08-27 21:27:34 +01:00
|
|
|
done
|