mirror of
https://github.com/josmo/drone-rancher.git
synced 2026-06-16 14:50:35 +08:00
11 lines
242 B
Python
Executable File
11 lines
242 B
Python
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
source $(dirname $0)/version
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
mkdir -p bin
|
|
[ "$(uname)" != "Darwin" ] && LINKFLAGS="-linkmode external -extldflags -static -s"
|
|
go build -ldflags "-X main.VERSION=$VERSION $LINKFLAGS" -o bin/go-rancher
|