-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated release scripts for kustomize
- Loading branch information
Showing
6 changed files
with
70 additions
and
54 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
## Steps to run build locally | ||
## Overview | ||
|
||
Install container-builder-local from github and define GOOS, GOARCH, OUTPUT env | ||
variables and run following command | ||
This directory contains scripts and configruation files for publishing a | ||
`kustomize` release on [release page](https://github.com/kubernetes-sigs/kustomize/releases) | ||
|
||
## Steps to run build a release locally | ||
Install container-builder-local from [github](https://github.com/GoogleCloudPlatform/container-builder-local). | ||
|
||
```sh | ||
container-builder-local --config=cmd/kustomize/build/cloudbuild_local.yaml --dryrun=false --substitutions=_GOOS=$GOOS,_GOARCH=$GOARCH --write-workspace=$OUTPUT . | ||
container-builder-local --config=build/cloudbuild_local.yaml --dryrun=false --write-workspace=/tmp/w . | ||
``` | ||
|
||
## 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 | ||
``` | ||
You will find the build artifacts under `/tmp/w/dist` directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This is an example goreleaser.yaml file with some sane defaults. | ||
# Make sure to check the documentation at http:https://goreleaser.com | ||
project_name: kustomize | ||
builds: | ||
- main: ./kustomize.go | ||
binary: kustomize | ||
ldflags: -s -X github.com/kubernetes-sigs/kustomize/version.kustomizeVersion={{.Version}} -X github.com/kubernetes-sigs/kustomize/version.gitCommit={{.Commit}} -X github.com/kubernetes-sigs/kustomize/version.buildDate={{.Date}} | ||
goos: | ||
- darwin | ||
- linux | ||
- windows | ||
goarch: | ||
- amd64 | ||
env: | ||
- CGO_ENABLED=0 | ||
checksum: | ||
name_template: 'checksums.txt' | ||
archive: | ||
format: binary | ||
snapshot: | ||
name_template: "master" | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^test:' | ||
- Merge pull request | ||
- Merge branch | ||
release: | ||
github: | ||
owner: kubernetes-sigs | ||
name: kustomize |