Release: Use GoReleaser for release#400
Open
aymanbagabas wants to merge 1 commit intoshazow:masterfrom
Open
Conversation
- use github actions and goreleaser to automatically build and publish release on new tags - build binaries - build dep/rpm packages for linux - build docker images tagged with release version and 'latest' tag - publish release on github releases - publish docker images on github container registry - replace `Dockerfile` with `Dockerfile.goreleaser` - update `docker-compose.yml` to use `ghcr.io`
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 emerged cause I wanted a docker image that can be used to deploy
ssh-chatquickly and reliably.Related: #111 #253
Since the workflow runs on tag creation, a release is as easy as pushing a new tag in the form of
v*.*.release on new tags
DockerfilewithDockerfile.goreleaserdocker-compose.ymlto useghcr.ioRelease example: https://github.com/aymanbagabas/ssh-chat/releases
Containers example: https://github.com/aymanbagabas/ssh-chat/pkgs/container/ssh-chat
This publishes 2 docker images for Linux
amd64andarm64. Along with Github release artifacts for Linux, Darwin, Windows, and FreeBSD.CAVEATS:
This might make break publishing releases through Github Releases. Whenever I try to create a new release on my fork I get
We weren’t able to create the release for you. Make sure you have a valid tag.even though I have a valid tag.Docker deployments
As the
docker-compose.ymlfile show, deployment can be as easy as mapping a volume that contains the identity file, admins, motd, etc and customizing thecommandparameter in Docker.