mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 18:19:36 +00:00
* bootcfg/version package provides the linker's GIT SHA based version to bootcfg components * Display the bootcfg version via the HTTP server / path for convenience and for validating a deployed version easily * Log requests to the / rooted subtree paths to surface machines which are making requests containing typos and mistakes that do not match HTTP API endpoints
8 lines
373 B
Bash
Executable File
8 lines
373 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
LD_FLAGS="-w -X github.com/coreos/coreos-baremetal/bootcfg/version.Version=$(./git-version)"
|
|
CGO_ENABLED=0 go build -o bin/bootcfg -ldflags "$LD_FLAGS" -a -tags netgo github.com/coreos/coreos-baremetal/cmd/bootcfg
|
|
|
|
# bootcmd CLI binary
|
|
CGO_ENABLED=0 go build -o bin/bootcmd -ldflags "$LD_FLAGS" -a -tags netgo github.com/coreos/coreos-baremetal/cmd/bootcmd
|