aks-operator/scripts/build

12 lines
230 B
Bash
Executable File

#!/bin/bash
source $(dirname $0)/version
cd $(dirname $0)/..
mkdir -p bin
if [ "$(uname)" = "Linux" ]; then
OTHER_LINKFLAGS="-extldflags -static -s"
fi
CGO_ENABLED=0 go build -ldflags "$OTHER_LINKFLAGS" -o bin/aks-operator