Files
labca/gui/setup.sh
Arjan H 0ed9d8eac2 Build and use local docker images for docker-only setup (#41)
For now, the images are still built on the target machine for testing,
in the end they need to be built in a GitHub action.
2023-04-15 09:19:17 +02:00

19 lines
398 B
Bash
Executable File

#!/bin/bash
set -e
[ -d bin ] || mkdir bin
[ -e bin/labca-gui ] || set -ev
if [ ! -e bin/labca-gui ]; then
go mod download
go build -buildvcs=false -o bin/labca-gui -ldflags="-X 'main.standaloneVersion=$GIT_VERSION'"
fi
export DEBIAN_FRONTEND=noninteractive
[ -e /bin/ip ] || (apt update && apt install -y iproute2)
[ -e /bin/zip ] || (apt update && apt install -y zip)
bin/labca-gui