mirror of
https://github.com/rancher/k3k.git
synced 2026-03-02 17:50:36 +00:00
* wip drop dapper * added tests, validate * fix kubebuilder assets * debug * fix maybe * export global * export global 2 * fix goreleaser * dev doc section improved * crd and docs * drop dapper * drop unused tmpl * added help * typos, and added `build-crds` target to default
16 lines
478 B
Bash
Executable File
16 lines
478 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eou pipefail
|
|
|
|
LDFLAGS="-X \"github.com/rancher/k3k/pkg/buildinfo.Version=${VERSION}\""
|
|
|
|
echo "Building k3k... [cli os/arch: $(go env GOOS)/$(go env GOARCH)]"
|
|
echo "Current TAG: ${VERSION} "
|
|
|
|
export CGO_ENABLED=0
|
|
GOOS=linux GOARCH=amd64 go build -ldflags="${LDFLAGS}" -o bin/k3k
|
|
GOOS=linux GOARCH=amd64 go build -ldflags="${LDFLAGS}" -o bin/k3k-kubelet ./k3k-kubelet
|
|
|
|
# build the cli for the local OS and ARCH
|
|
go build -ldflags="${LDFLAGS}" -o bin/k3kcli ./cli
|