mirror of
https://github.com/rancher/os.git
synced 2025-08-15 13:35:17 +00:00
- Use burmilla GitHub repos - Release under burmilla Docker Hub - GitHub action for create releases - Updated boot image and login banner - Use Debian as default console - Updated system-cron to v0.5.0 - Updated services to latest versions - Bump up kernel to 4.14.206 - Include burmilla/os-debianconsole:v1.9.0 to initrd
21 lines
510 B
Bash
Executable File
21 lines
510 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
ros="$1"
|
|
|
|
source $(dirname $0)/version
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
if [ "${!TOOLCHAIN}" != "" ]; then
|
|
export CC=/usr/bin/${!TOOLCHAIN}-gcc
|
|
export CGO_ENABLED=1
|
|
fi
|
|
|
|
OUTPUT=${OUTPUT:-bin/ros}
|
|
echo Building $OUTPUT
|
|
BUILDDATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
|
|
|
|
CONST="-X github.com/burmilla/os/config.Version=${VERSION} -X github.com/burmilla/os/config.OsRepo=${OS_REPO} -X github.com/burmilla/os/config.BuildDate='${BUILDDATE}'"
|
|
go build -ldflags "$CONST -extldflags -static -s -w" -o ${OUTPUT}
|