storj/scripts/deploy-storagenode.sh
Ivan Fraixedes fc4b0e41f0 scripts: Change Storagenode arm32v6 to arm32v5
We don't build "multinode" nor "storagenode" docker images for armv6
architecture, instead we build for armv5.

Fix the script that publish the manifest for those images for a specific
tag to use armv5 for not failing when executing.

Change-Id: I7d859d8718240e1cd0dae6489e7e5c3b4068ff6e
2022-06-21 11:54:38 +00:00

27 lines
833 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
for app in multinode storagenode; do
docker manifest create --amend storjlabs/$app:$v \
storjlabs/$app:${TAG}-amd64 \
storjlabs/$app:${TAG}-arm32v5 \
storjlabs/$app:${TAG}-arm64v8
docker manifest annotate storjlabs/$app:$v \
storjlabs/$app:${TAG}-amd64 --os linux --arch amd64
docker manifest annotate storjlabs/$app:$v \
storjlabs/$app:${TAG}-arm32v5 --os linux --arch arm --variant v5
docker manifest annotate storjlabs/$app:$v \
storjlabs/$app:${TAG}-arm64v8 --os linux --arch arm64 --variant v8
docker manifest push --purge storjlabs/$app:$v
done
done