GitHunt
GA

Gameye/steam-build-trigger

Update steam distributions when a new version is released by steam

Steam build trigger

Trigger a steam build when a new version is released by steam

Building the Docker Image

Note that your NPM authentication token is to be set as an environment variable:

docker build -t steam-build-trigger \
    --build-arg NPM_VERSION=INSERT_NPM_VERSION \
    --build-arg NPM_TOKEN=${NPM_TOKEN} .

Don't forget to replace 'INSERT_NPM_VERSION' with the desired NPM version!

Running as a container

docker run steam-build-trigger run

The run argument is mandatory for the service to run the HTTP server!

Automated tests

Never commit something that breaks the build! You can
easily prevent this by linking the test.sh script as a git pre-commit hook!

like this:

ln test.sh .git/hooks/pre-commit

What does it do?

  1. Read initial version from the steam-api
  2. Compare that version to version from steam-api
  3. Continue polling the steam api to figure out if there is a new version available
  4. If a new version is available, an update is needed so trigger CI via circleci api

tools

Trigger a build:

curl -X POST --header "Content-Type: application/json" -d '{"branch":"develop"}' https://circleci.com/api/v1.1/project/github/Gameye/tf2-image/build?circle-token=${CIRCLE_API_USER_TOKEN}

Languages

TypeScript91.6%Dockerfile5.9%Shell2.5%

Contributors

Created December 10, 2018
Updated February 19, 2026
Gameye/steam-build-trigger | GitHunt