Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary only release artifacts #1385

Merged
merged 1 commit into from
Jan 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions release/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,17 @@ also updated with the `latest` tag for tagged releases.
- `kpt-dev` release buckets
- `gs://kpt-dev/latest`
- `gs://kpt-dev/releases`

# Dry-Run Goreleaser

To test local changes to the [`goreleaser.yaml`](./tag/goreleaser.yaml) config. You may
[install goreleaser](https://goreleaser.com/install/) locally and provide the
`--skip-verify --skip-publish` flags.

From the kpt directory you would run:

```sh
goreleaser release --skip-validate --skip-publish -f release/tag/goreleaser.yaml
```

The resulting release artifacts will be stored in the `./dist` directory.
7 changes: 6 additions & 1 deletion release/tag/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,15 @@ builds:
- arm64
ldflags: -s -w -X github.com/GoogleContainerTools/kpt/run.version={{.Version}}
archives:
- files:
- id: archived
files:
- LICENSES*
- lib.zip*
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}-{{ .Version }}"
- id: bin-only
format: binary
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"

checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down