mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-19 08:54:44 +00:00
Add linux/arm to the list of server builds
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
.PHONY: build push
|
||||
|
||||
IMAGE = pause
|
||||
TAG = 2.0
|
||||
|
||||
ARCH = amd64
|
||||
IMAGE = pause
|
||||
# ARCH = arm
|
||||
# IMAGE = pause-arm
|
||||
|
||||
build:
|
||||
./prepare.sh
|
||||
./prepare.sh ${ARCH}
|
||||
docker build -t gcr.io/google_containers/$(IMAGE):$(TAG) .
|
||||
|
||||
push: build
|
||||
|
@@ -17,8 +17,10 @@
|
||||
set -e
|
||||
set -x
|
||||
|
||||
ARCH=$1
|
||||
|
||||
# Build the binary.
|
||||
go build --ldflags '-extldflags "-static" -s' pause.go
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} godep go build -a -installsuffix cgo -ldflags '-w' ./pause.go
|
||||
|
||||
# Run goupx to shrink binary size.
|
||||
go get github.com/pwaller/goupx
|
||||
|
Reference in New Issue
Block a user