kubectl/cmd/kustomize/build
Sunil Arora 88a1b80229 kustomize: automate github release publishing
An example release looks like:

https://github.com/droot/kubectl/releases/tag/v0.1.0
2018-04-11 15:16:57 -07:00
..
.goreleaser.yml kustomize: automate github release publishing 2018-04-11 15:16:57 -07:00
README.md change kinflate to kustomize 2018-04-11 11:21:31 -07:00
build.sh kustomize: automate github release publishing 2018-04-11 15:16:57 -07:00
cloudbuild.yaml kustomize: automate github release publishing 2018-04-11 15:16:57 -07:00
cloudbuild_local.yaml kustomize: automate github release publishing 2018-04-11 15:16:57 -07:00

README.md

Steps to run build locally

Install container-builder-local from github and define GOOS, GOARCH, OUTPUT env variables and run following command

container-builder-local --config=cmd/kustomize/build/cloudbuild_local.yaml --dryrun=false --substitutions=_GOOS=$GOOS,_GOARCH=$GOARCH --write-workspace=$OUTPUT .

Steps to submit build to Google container builder

You need to be at the repo level to be able to run the following command

gcloud container builds submit . --config=cmd/kustomize/build/cloudbuild.yaml --substitutions=_GOOS=$GOOS,_GOARCH=$GOARCH