You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: