-
Notifications
You must be signed in to change notification settings - Fork 233
Add Homebrew installer #244
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,3 +56,18 @@ dockers: | |
extra_files: | ||
- etc/chart_schema.yaml | ||
- etc/lintconf.yaml | ||
brews: | ||
- github: | ||
owner: helm | ||
name: homebrew-tap | ||
commit_author: | ||
name: helm-bot | ||
email: [email protected] | ||
folder: Formula | ||
homepage: https://github.com/helm/chart-testing/ | ||
description: Testing and linting Helm charts | ||
install: | | ||
bin.install "ct" | ||
etc.install "etc" => "ct" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Had to look up There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Me too. Took me a while to figure out how to do it. My first attempt was to copy it to |
||
test: | | ||
system "#{bin}/ct version" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,16 +34,13 @@ Unpack the `ct` binary, add it to your PATH, and you are good to go! | |
A Docker image is available at `quay.io/helmpack/chart-testing` with list of | ||
available tags [here](https://quay.io/repository/helmpack/chart-testing?tab=tags). | ||
|
||
### From Source | ||
### Homebrew | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Glad for this change. People seem to keep getting confused at the from source options |
||
|
||
To install from head with [Go](https://golang.org) 1.14 or higher: | ||
|
||
```cli | ||
go get github.com/helm/chart-testing/v3/ct | ||
```console | ||
$ brew tap helm/tap | ||
$ brew install chart-testing | ||
``` | ||
|
||
This will put `ct` in `$(go env GOPATH)/bin`. You may need to add that directory to your `$PATH` as shown [here](https://golang.org/doc/code.html#GOPATH) if you encounter the error `ct: command not found` after installation. | ||
|
||
## Usage | ||
|
||
See documentation for individual commands: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quick note while I was looking… when we upgrade goreleaser to
v0.139.0
we'll want to change this totap
https://goreleaser.com/deprecations/#brewsgithub but 👌 for now!