mirror of
https://github.com/outbackdingo/labca.git
synced 2026-01-27 18:19:33 +00:00
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.
19 lines
398 B
Bash
Executable File
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
|