transparencylog / tl

verify https assets with a public transparency log
https://www.transparencylog.com/
Apache License 2.0
75 stars 5 forks source link

Use goreleaser to generate homebrew formula #20

Closed rothgar closed 4 years ago

rothgar commented 4 years ago

This can be edited to customize it more if you want. https://goreleaser.com/customization/homebrew/

By default this will allow macOS and Linux (x86, x86_64, and arm) to use brew instead of needing rpms or debs. You should still provide those too but this will make install and updating on Linux easier.

If you automate the deployment in Github actions just make sure the actions have access to commit code into the equinox org.

philips commented 4 years ago

@rothgar oh, cool, thanks! This would replace the equinox homebrew though, right?

rothgar commented 4 years ago

Correct. I can change the org to be transparencylog but you'll need to create the repo you want it to live in (eg transparencylog/homebrew-tl)

philips commented 4 years ago

Just tell me what repo to create and I will follow your lead.

On Thu, Aug 20, 2020, 7:28 PM Justin Garrison notifications@github.com wrote:

Correct. I can change the org to be transparencylog but you'll need to create the repo you want it to live in (eg transparencylog/homebrew-tl)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/transparencylog/tl/pull/20#issuecomment-678002852, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAIGCDISMYRAHYHKNRFI4TSBXLVZANCNFSM4QGWDGYQ .

rothgar commented 4 years ago

If you plan on releasing more tools under transparencylog org then having a generic homebrew repo makes sense.

Create the repo transparencylog/homebrew-tap

If you want to use Github actions to run goreleaser create a Github token with repo access. image

In the transparencylog/tl repo settings go to secrets create a new GO_RELEASER secret with the token you made. I can add a Github action step to run goreleaser for new releases to this PR.

philips commented 4 years ago

Merged via https://github.com/transparencylog/tl/commit/4c2dc0ed57ea7629988b81cb6165fe179751c56b

But, now I see:

            • DEPRECATED: `brews.github` should not be used anymore, check https://goreleaser.com/deprecations#brewsgithub for more info.
philips commented 4 years ago

OK, I released v0.2.12 with a tap. Give it a go?

philips commented 4 years ago

Closing for now.

philips commented 4 years ago

Thanks!

rothgar commented 4 years ago

brew install worked for me on linux :raised_hands: