openwebrx-clone/push.sh

25 lines
823 B
Bash
Raw Normal View History

2019-01-21 16:40:36 +00:00
#!/bin/bash
2019-01-21 17:44:35 +00:00
set -euxo pipefail
2019-01-22 11:52:03 +00:00
ARCH=$(uname -m)
2019-12-15 02:18:30 +00:00
ALL_ARCHS="x86_64 armv7l aarch64"
2019-12-27 10:36:45 +00:00
TAG="latest"
ARCHTAG="$TAG-$ARCH"
2019-11-18 13:42:05 +00:00
2019-06-20 13:37:21 +00:00
for image in openwebrx-rtlsdr openwebrx-sdrplay openwebrx-hackrf openwebrx-airspy openwebrx-full openwebrx; do
2019-12-27 10:36:45 +00:00
docker push jketterl/$image:$ARCHTAG
2019-12-28 16:17:10 +00:00
done
for image in openwebrx-rtlsdr openwebrx-sdrplay openwebrx-hackrf openwebrx-airspy openwebrx-full openwebrx; do
# there's no docker manifest rm command, and the create --amend does not work, so we have to clean up manually
rm -rf "${HOME}/.docker/manifests/docker.io_jketterl_${image}-${TAG}"
2019-11-18 13:42:05 +00:00
IMAGE_LIST=""
for a in $ALL_ARCHS; do
2019-12-27 10:36:45 +00:00
IMAGE_LIST="$IMAGE_LIST jketterl/$image:$TAG-$a"
2019-11-18 13:42:05 +00:00
done
2019-12-28 16:17:10 +00:00
docker manifest create jketterl/$image:$TAG $IMAGE_LIST
2019-12-28 16:26:54 +00:00
docker manifest push --purge jketterl/$image:$TAG
docker pull jketterl/$image:$TAG
2019-01-22 11:52:03 +00:00
done