Central deployment config for the SE2 course server. doco-cd polls this repo and deploys each group's server automatically.
- Each group has a file in
groups/grp-N.ymlpointing to their server repository. - On every push to
main, a GitHub Action merges all group files (sorted by name) into.doco-cd.yml. - doco-cd polls this repo every 3 minutes, reads
.doco-cd.yml, and deploys each group'sproduction.docker-compose.yamlfrom their own repository.
- Create a file
groups/grp-N.ymlwith the following content:
name: grp-1-your-game-server # lowercase, no spaces
repository_url: https://github.com/your-org/your-server-repo.git
reference: main
compose_files:
- production.docker-compose.yaml
force_image_pull: true # always pull the latest image on every deployYour production.docker-compose.yaml should use a pre-built image (e.g. from ghcr.io) rather than a build: instruction - we want to keep deployment fast and simple. You can set up GitHub Actions in your server repo to build and push the image on every push to main.
For all the possible configuration values, see the doco-cd docs.
- Open a Pull Request against
main. - Once merged, the Action regenerates
.doco-cd.ymland deployment starts within ~3 minutes.
- Do not edit
.doco-cd.ymldirectly — it is auto-generated and your changes will be overwritten. - The
namefield must be lowercase and contain only letters, numbers, hyphens, and underscores.