Custom Renovate datasource for tracking Minecraft Java Edition versions.
-
Enable Renovate for your repository: Getting Started Guide
-
Add configuration:
- Option A: Copy
renovate.jsonto your repository - Option B: Add the
customManagersandcustomDatasourcesfromrenovate.jsonto your existing renovate.json
- Option A: Copy
-
Add the renovate comment to any file where you want to track Minecraft versions
Track releases in docker-compose.yml:
services:
minecraft:
image: itzg/minecraft-server
environment:
# renovate: datasource=custom.minecraft-release
VERSION: "1.21.8"Track snapshots in a versions file:
# renovate: datasource=custom.minecraft-snapshot
minecraft_snapshot: "25w35a"Track in Dockerfile:
# renovate: datasource=custom.minecraft-release
ENV MINECRAFT_VERSION=1.21.8- API:
https://launchermeta.mojang.com/mc/game/version_manifest_v2.json - Release datasource:
custom.minecraft-release - Snapshot datasource:
custom.minecraft-snapshot
- Renovate fetches versions from Mojang's API
- Filters by release type (release/snapshot)
- Creates PRs when new versions are available
- Updates your
versions.ymlfile
MIT