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

feat: brew install 🍻 #114

Merged
merged 15 commits into from
Mar 17, 2021
Merged

feat: brew install 🍻 #114

merged 15 commits into from
Mar 17, 2021

Conversation

jfatta
Copy link
Contributor

@jfatta jfatta commented Feb 26, 2021

Add homebrew release.

The tap is pushed here: https://github.com/auth0/homebrew-auth0-cli.

To install

brew install auth0/auth0-cli/auth0

see: https://docs.brew.sh/How-to-Create-and-Maintain-a-Tap

Regarding formula "name":

Homebrew resolves which formula file to install and from which public repo should get it as:
auth0/homebrew-{auth0-cli}/auth0.

Eventually, auth0-cli CI/CD could push its formula to homebrew-core and therefore offer the default support for brew install auth0 (it would be really nice).
Keep in mind submissions to homebrew core are not covered by goreleaser, something like this can be used: https://github.com/mislav/bump-homebrew-formula-action

see: https://docs.brew.sh/Acceptable-Formulae

TODO:

  • override this repo secret GORELEASER_GITHUB_TOKEN with an Auth0 token to push changes to the tap repo. It is currently using a personal token.
  • open https://github.com/auth0/homebrew-auth0-cli to the public, otherwise the tap is not going to work without GitHub credentials.
Screen.Recording.2021-03-06.at.23.13.16.mov

@@ -25,4 +25,4 @@ jobs:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jfatta jfatta changed the title homebrew tap feat: brew install 🎉 Mar 7, 2021
@jfatta jfatta changed the title feat: brew install 🎉 feat: brew install 🍻 Mar 7, 2021
@@ -8,9 +8,11 @@ import (

func completionCmd(cli *cli) *cobra.Command {
cmd := &cobra.Command{
Use: "completion [bash|zsh|fish|powershell]",
Use: "completion",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to align with other commands but also to keep the skip-login logic simple.

@jfatta jfatta marked this pull request as ready for review March 7, 2021 02:23
.goreleaser.yml Outdated Show resolved Hide resolved
@Widcket Widcket requested a review from cyx March 17, 2021 20:04
@jfatta jfatta merged commit e109c70 into main Mar 17, 2021
@jfatta jfatta deleted the spike-homebrew branch March 17, 2021 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants