add readme instructions to publish new versions

This commit is contained in:
2025-11-20 03:33:33 -08:00
parent 9d7d471364
commit 36c36018d1

21
README.md Normal file
View File

@ -0,0 +1,21 @@
# To release a new version
## Build in the docker image (make sure you have Docker installed!)
Set the version to the next [semantic version](https://semver.org/) after the version posted at [our co-op cloud's packages site](https://git.coopcloud.tech/RTM/-/packages) under "mapbattle":
``` bash
version=<specify-version>
docker build --platform linux/amd64 -t git.coopcloud.tech/rtm/mapbattle:$version .
```
## Push the image to gitea registery
Check out [this documentation](https://docs.gitea.com/next/usage/packages/container) for how to login with gitea registery.
``` bash
# If not in the same terminal session, rerun `version=...` line from last step
docker push git.coopcloud.tech/rtm/mapbattle:$version
```
At [our co-op cloud's packages site](https://git.coopcloud.tech/RTM/-/packages), click on "mapbattle" and check that the version mentioned is the version you specified!