Release: Use GoReleaser for release #400
Open
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-chat
quickly 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
Dockerfile
withDockerfile.goreleaser
docker-compose.yml
to useghcr.io
Release 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
amd64
andarm64
. 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.yml
file show, deployment can be as easy as mapping a volume that contains the identity file, admins, motd, etc and customizing thecommand
parameter in Docker.