Skip to content

Commit

Permalink
Binary only release artifacts (#1385)
Browse files Browse the repository at this point in the history
- GitHub tagged releases now include direct binary downloads
- kpt release/README includes documentation for dry-running goreleaser
  • Loading branch information
runewake2 committed Jan 25, 2021
1 parent 2311c46 commit a127029
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
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

0 comments on commit a127029

Please sign in to comment.