diff --git a/build/README.md b/build/README.md index 411b9c7520..372c138571 100644 --- a/build/README.md +++ b/build/README.md @@ -1,6 +1,6 @@ ## Overview -This directory contains scripts and configruation files for publishing a +This directory contains scripts and configuration files for publishing a `kustomize` release on [release page](https://github.com/kubernetes-sigs/kustomize/releases) ## Steps to run build a release locally diff --git a/build/goreleaser.yml b/build/goreleaser.yml new file mode 100644 index 0000000000..918e687b2f --- /dev/null +++ b/build/goreleaser.yml @@ -0,0 +1,33 @@ +# This is an example goreleaser.yaml file with some sane defaults. +# Make sure to check the documentation at http://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