Unverified Commit 80c2c9da authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Update publish-docker script (and README, while at it)

parent 18cfb65a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ you have four installation options:
* `.deb` releases for Debian-based distributions
* Installing the latest release from CPAN
* Installation from source
* Using a Docker image
* Using a Docker image (amd64 or arm64)

Except for Docker, **efa** is available in your PATH after installation. You
can run `efa --version` to verify this. Documentation is available via
@@ -147,7 +147,6 @@ Documentation is not available in this image. Please refer to the

Mirrors of the efa / Travel::Routing::DE::EFA repository are available at

* [Chaosdorf](https://chaosdorf.de/git/derf/Travel-Routing-DE-EFA)
* [Codeberg](https://codeberg.org/derf/Travel-Routing-DE-EFA/)
* [Finalrewind](https://git.finalrewind.org/derf/Travel-Routing-DE-EFA/)
* [GitHub](https://github.com/derf/Travel-Routing-DE-EFA)
+17 −1
Original line number Diff line number Diff line
@@ -5,9 +5,25 @@ set -e
VERSION="$1"
test -n "${VERSION}"

mosquitto_pub -h mqtt -t dmap/set/structure/0003 -m usbc_voice=1

git checkout main
git pull
git checkout "${VERSION}"
git submodule update --init

docker buildx build --push --no-cache --platform linux/amd64,linux/arm64 --tag derfnull/efa:${VERSION} --tag derfnull/efa:latest --build-arg=dbf_version=${VERSION} .
echo -n 'Waiting for ARM64 build host to become ready '
while ! test "$(docker buildx inspect mybuild | fgrep -c running)" = 2; do
	echo -n .
	sleep 5
done
echo

docker buildx build --push --no-cache --platform linux/amd64,linux/arm64 \
	--tag derfnull/efa:${VERSION} --tag derfnull/efa:latest \
	.

echo 'Turning off ARM64 build host ...'
ssh voice 'sudo poweroff'
sleep 30
mosquitto_pub -h mqtt -t dmap/set/structure/0003 -m usbc_voice=0