ec2bd50bb4
In order to tag the latest release for the multinode image, it makes the most sense to do it at the same time as we release the storagenode image. Change-Id: I2d63c1f93858354ad1f9a4fce0ce45a8fda2716f
27 lines
833 B
Bash
Executable File
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}-arm32v6 \
|
|
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}-arm32v6 --os linux --arch arm --variant v6
|
|
|
|
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
|