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
|
|
|
|
2020-02-09 14:23:17 +00:00
|
|
|
IMAGES="openwebrx-rtlsdr openwebrx-sdrplay openwebrx-hackrf openwebrx-airspy openwebrx-rtlsdr-soapy openwebrx-plutosdr openwebrx-limesdr openwebrx-soapyremote openwebrx-full openwebrx"
|
2020-01-17 11:58:26 +00:00
|
|
|
|
|
|
|
for image in ${IMAGES}; do
|
2019-12-27 10:36:45 +00:00
|
|
|
docker push jketterl/$image:$ARCHTAG
|
2019-12-28 16:17:10 +00:00
|
|
|
done
|
|
|
|
|
2020-01-17 11:58:26 +00:00
|
|
|
for image in ${IMAGES}; do
|
2019-12-28 16:17:10 +00:00
|
|
|
# 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
|