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

Make a one liner installer for grid-intensity CLI #12

Closed
rossf7 opened this issue Jun 8, 2022 · 4 comments
Closed

Make a one liner installer for grid-intensity CLI #12

rossf7 opened this issue Jun 8, 2022 · 4 comments
Assignees

Comments

@rossf7
Copy link
Contributor

rossf7 commented Jun 8, 2022

We can use GoReleaser to generate binaries for several platforms. It is triggered via a GitHub Action.

To create a new release you just push a tag with the new version.

Curl script

We will create a YOLO script to install the CLI via curl (with a recommendation to check the contents of the script ;)

Docker

For users who don't want to install the CLI binary locally they can run it via docker

GoReleaser supports publishing container image but Docker also have 2 actions that work well and I've used in the past.
They are triggered when a new GitHub release is created.

https://github.com/docker/build-push-action
https://github.com/docker/metadata-action

MacOS

For homebrew GoReleaser can publish the CLI to a tap.
https://goreleaser.com/customization/homebrew/

We will also need to create a repo to host the binaries. e.g. https://github.com/thegreenwebfoundation/homebrew-grid-intensity
With this we can install with brew install grid-intensity/tap/grid-intensity

Apt package

GoReleaser Pro supports publishing apt and yum packages https://goreleaser.com/customization/fury/
It does this by publishing to GemFury https://fury.co/

TODO @rossf7 Get pricing for publishing with GoReleaser Pro and GemFury

@rossf7 rossf7 self-assigned this Jun 8, 2022
@mrchrisadams mrchrisadams added this to the First official release milestone Jun 8, 2022
@mrchrisadams
Copy link
Member

Awesome, thanks for this @rossf7:

We will also need to create a repo to host the binaries. e.g. https://github.com/thegreenwebfoundation/homebrew-grid-intensity

Would you let me know if you need the permissions to create this repo? If not, I can create a totally blank repo and add you as an admin.

@rossf7
Copy link
Contributor Author

rossf7 commented Jun 8, 2022

Thanks @mrchrisadams I just checked and I can't create repos. If you can create a blank repo and make me admin I can take it from there.

@mrchrisadams
Copy link
Member

@rossf7
Copy link
Contributor Author

rossf7 commented Jul 1, 2022

We now have binaries for Linux, Mac and Windows plus Homebrew support and the one liner install script

@rossf7 rossf7 closed this as completed Jul 1, 2022
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

No branches or pull requests

2 participants