#!/bin/bash app="wsjtx-exporter" docker build -t 10.0.73.1:5000/$app:latest . || exit 1 #export TAG=$(docker images|grep -v REPO|head -n1|awk '{print $3}') #docker tag $TAG 10.0.73.1:5000/$app:latest || exit 1 docker push 10.0.73.1:5000/$app:latest || exit 1 go get ./... env GOOS=linux GOARCH=arm GOARM=5 go get ./... env GOOS=windows GOARCH=amd64 go get ./... cp ~/go/bin/alltxt2http ~/Nextcloud/share/dl7le/binaries/linux64 cp ~/go/bin/linux_arm/alltxt2http ~/Nextcloud/share/dl7le/binaries/raspi cp ~/go/bin/windows_amd64/alltxt2http.exe ~/Nextcloud/share/dl7le/binaries/win64 ssh pi@192.168.2.122 systemctl stop --user alltxt2http.service scp ~/go/bin/linux_arm/alltxt2http pi@192.168.2.122:bin ssh pi@192.168.2.122 systemctl start --user alltxt2http.service