Script for deploying the Docker manifest for watchtower (#3015)

This commit is contained in:
Kaloyan Raev 2019-09-12 17:38:48 +03:00 committed by GitHub
parent bb6086aeab
commit 208327835f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

26
scripts/deploy-watchtower.sh Executable file
View File

@ -0,0 +1,26 @@
#!/usr/bin/env bash
# Usage: VERSION=0.3.8 scripts/deploy-watchtower.sh
set -euo pipefail
: "${VERSION:?Must be set to the release version}"
docker manifest create storjlabs/watchtower:latest \
storjlabs/watchtower:i386-${VERSION} \
storjlabs/watchtower:amd64-${VERSION} \
storjlabs/watchtower:arm64v8-${VERSION} \
storjlabs/watchtower:armhf-${VERSION}
docker manifest annotate storjlabs/watchtower:latest \
storjlabs/watchtower:i386-${VERSION} --os linux --arch 386
docker manifest annotate storjlabs/watchtower:latest \
storjlabs/watchtower:amd64-${VERSION} --os linux --arch amd64
docker manifest annotate storjlabs/watchtower:latest \
storjlabs/watchtower:arm64v8-${VERSION} --os linux --arch arm64 --variant v8
docker manifest annotate storjlabs/watchtower:latest \
storjlabs/watchtower:armhf-${VERSION} --os linux --arch arm
docker manifest push --purge storjlabs/watchtower:latest