25 lines
969 B
Markdown
25 lines
969 B
Markdown
# development
|
|
|
|
Run `bash db/setup_db.sh` to have development database setup.
|
|
|
|
# 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! |