2020-11-19 20:27:09 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# force go modules
|
|
|
|
export GOPATH=""
|
|
|
|
|
|
|
|
# disable cgo
|
|
|
|
export CGO_ENABLED=0
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
|
|
|
# linux
|
2020-11-26 07:15:10 +01:00
|
|
|
GOOS=linux GOARCH=amd64 go build -o release/linux/amd64/kaniko-gcr ./cmd/kaniko-gcr
|
|
|
|
GOOS=linux GOARCH=amd64 go build -o release/linux/amd64/kaniko-ecr ./cmd/kaniko-ecr
|
|
|
|
GOOS=linux GOARCH=amd64 go build -o release/linux/amd64/kaniko-docker ./cmd/kaniko-docker
|
2020-11-19 20:27:09 +01:00
|
|
|
|