Skip to content

feat: use goreleaser in CI #20

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

Merged
merged 1 commit into from
Aug 4, 2020
Merged

feat: use goreleaser in CI #20

merged 1 commit into from
Aug 4, 2020

Conversation

FUSAKLA
Copy link
Contributor

@FUSAKLA FUSAKLA commented Aug 3, 2020

resolves #15 #9 #16
closes #19

Switch to goreleaser to provide cross-builds, docker builds for multiple tags and automate github artifacts release

Changed:

  • Added .goreleaser.yml witch definition of the release (cross-build, upload of github artifacts and docker build)
  • Added simple make build and make docker for testing and local usage
  • Added make cross-build which runs build for all supported architectures and OS
  • Added make release-notes which generates release notes for last tagged version from the CHANGELOG.md
  • Added make release which runs the goreleaser and:
    1. does cross-build
    2. creates github release
    3. packs and uploads new tar.gz artifacts to the release for all architectures and OS
    4. sets the release notes of the new release using make release-notes
    5. builds docker image and pushes tags for latest, and all semver levels

Sorry that it's quite big but it was all related.

I'm personally quite pleased how simple and intuitive the configuration of goreleaser is but I'm open to other opinions.

@FUSAKLA FUSAKLA added the CI Issues related to continous integration label Aug 3, 2020
@FUSAKLA FUSAKLA self-assigned this Aug 3, 2020
@FUSAKLA FUSAKLA linked an issue Aug 3, 2020 that may be closed by this pull request
@FUSAKLA FUSAKLA removed their assignment Aug 3, 2020
Signed-off-by: Martin Chodur <[email protected]>
@FUSAKLA FUSAKLA merged commit 57d3169 into master Aug 4, 2020
@david-vavra david-vavra deleted the fus-goreleaser branch November 23, 2020 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Issues related to continous integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Release also the latest tag to Docker Hub Cosider using goreleaser in CI
2 participants