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

Use go releaser to publish binaries on new tags #498

Merged
merged 2 commits into from Dec 22, 2022

Conversation

jesusvazquez
Copy link
Member

This PR updates circle ci config to use goreleaser to publish binaries on github releases whenever a new tag is created.

@jesusvazquez jesusvazquez force-pushed the jvp/use-go-releaser-to-build-binaries branch from 8ac76b2 to 8a0876c Compare December 22, 2022 11:13
@jesusvazquez jesusvazquez force-pushed the jvp/use-go-releaser-to-build-binaries branch 8 times, most recently from 0726a9a to eb25535 Compare December 22, 2022 12:04
@jesusvazquez jesusvazquez marked this pull request as ready for review December 22, 2022 12:05
Signed-off-by: Jesus Vazquez <jesus.vazquez@grafana.com>
@jesusvazquez jesusvazquez force-pushed the jvp/use-go-releaser-to-build-binaries branch from eb25535 to 20d1ca1 Compare December 22, 2022 12:06
branches:
ignore: /.*/
tags:
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
Copy link
Member Author

Choose a reason for hiding this comment

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

Had to repeat the filtering in both jobs because there is no way to filter an entire workflow

- checkout
- run: curl -sfL https://goreleaser.com/static/run | bash
# For dry runs use the following and comment the above
# - run: curl -sfL https://goreleaser.com/static/run | bash -s -- --rm-dist --skip-publish --snapshot
Copy link
Member Author

Choose a reason for hiding this comment

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

Took me a few minutes to find out how to do a dry run so I think this comment adds value for future us if we run into any issue

- windows
- darwin
goarch:
- amd64
Copy link
Member Author

Choose a reason for hiding this comment

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

amd64 only arch supported today because we ran into issues when compiling to arm due to our metrictank dependency

@jesusvazquez jesusvazquez merged commit 86cf3b5 into master Dec 22, 2022
@jesusvazquez jesusvazquez deleted the jvp/use-go-releaser-to-build-binaries branch December 22, 2022 14:43
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.

None yet

2 participants