Skip to content

michaelsstuff/minecraft-release-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minecraft-release-hook

To be run regular. Each time it runs, it checks the current release version and compares it to one locally saved. If they do not match, it will send an HTTP POST to a specified url and save the new version locally.

Create a .env with your URL:

API_ENDPOINT=https://cloud.docker.com/api/build/v1/source/.../trigger/.../call/

run container

docker run --rm -it --env-file .env -v $(pwd)/version.json:/root/version.json halandar/minecraft-release-hook:latest

crontab example

MAILTO="mycool@mailaddress.net"
* */2 * * * docker run --rm -it --env-file /etc/.env -v /etc/mc-version.json:/root/version.json halandar/minecraft-release-hook:latest

About

send HTTP PUSH if new minecraft version is released

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published