mirror of
https://github.com/rancher/k3k.git
synced 2026-03-04 18:54:14 +00:00
* testcontainers add build script dropped namespace from chart upload logs removed old tests * show go.mod diffs
19 lines
501 B
Bash
Executable File
19 lines
501 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e pipefail
|
|
|
|
TAG=$(git describe --tag --always)
|
|
|
|
echo "Building k3k..."
|
|
echo "Current TAG: ${TAG}"
|
|
|
|
export CGO_ENABLED=0
|
|
GOOS=linux GOARCH=amd64 go build -o bin/k3k
|
|
GOOS=linux GOARCH=amd64 go build -o bin/k3k-kubelet ./k3k-kubelet
|
|
|
|
# build the cli for the local OS and ARCH
|
|
go build -o bin/k3kcli ./cli
|
|
|
|
docker build -f package/Dockerfile -t rancher/k3k:dev -t rancher/k3k:${TAG} .
|
|
docker build -f package/Dockerfile.kubelet -t rancher/k3k-kubelet:dev -t rancher/k3k-kubelet:${TAG} .
|