Add goreleaser script for releasing binaries to our Alpha customers#127
Merged
Add goreleaser script for releasing binaries to our Alpha customers#127
Conversation
skottler
approved these changes
Mar 29, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a new script that publishes alpha releases for our customers. Once the script is merged, it'll allow us to publish updated binaries to the alpha repository. The goal is to add the alpha customers as collaborators and download the binary from the release tab. The alpha repository will also be a one-stop place for them to file issues and give us feedback.
The goreleaser configuration file is deliberately not tied to the CI system as we want to manually publish releases with a proper changelog until the
CLIrepository is public. The alpha releases are published to the repository https://github.com/planetscale/psdb-alpha. (nit: I've pinged @lkburns whether we can use https://github.com/planetscale/alpha, I'll update this issue if the repository URL changes)The command to publish the release is:
There are a couple of things that need some mentioning:
GITHUB_TOKENenvironment variable with access to the alpha repository.GORELEASER_CURRENT_TAG), the goreleaser will use the tag defined from this repo (github.com/planetscale/cli/). Let us use the tag from the CLI repo as it will help to debug issues. The reason is, we're going to ask for them for a version, and they will provide one withpscale --version. It will be helpful to observe that the version matches the version from our repo.--release-notesflag.README.mdandLicensefiles. The Readme file includes internal information from the CLI repository, so we shouldn't include it accidentally. And the License file isn't needed for the Alpha customer as it's not open-source yet./xref https://github.com/planetscale/project-big-bang/issues/157