- Create a changelog file in
changelog/
with the name of the tag e.g.changelog/v0.3.0.md
. This will be used as the template for the release page in GitHub. - Create a new tag that follows semantic versioning:
$ tag=v0.3.0
$ git tag -s "${tag}" -m "${tag}"
$ git push origin "${tag}"
- Run
$ goreleaser --release-notes=changelogs/v0.3.0.md --rm-dist
where the changelog file is the one created as part of step 1. - The docker image will be pushed automatically.
-
Manually build and test the new additions
-
Create a new tag based on:
$ tag=v0.2.1
$ git tag -s "${tag}" -m "${tag}"
$ git push origin "${tag}" -
Create the binaries with build cross, they are in dist/
-
Create the GitHub release, copy the release notes from the previous ones, and adjust as necessary. Upload the binaries created and click publish on the release.
-
The last step is creating and uploading the docker images. Use make image to create them and then tag them. Keep in mind that there is only 1 image for cortextool in Dockerhub at the moment.
-
Make sure to update the latest tag to the most recent version.