🔭 Determines the correct version to build for a given tag by querying the OpenTTD CDN.
581
cdn_version_scraper is a super simple utility that does the following:
go get github.com/ropenttd/cdn_version_scraper
go run github.com/ropenttd/cdn_version_scraper stable
Instead of passing the channel via the command line, you can instead pass it as an environment variable:
export PLUGIN_CHANNEL=stable
go run github.com/ropenttd/cdn_version_scraper
Additionally, setting PLUGIN_OUTPUTFILE will additionally write a file containing the output to the specified path.
These environment variables make using this perfect for use as a Drone CI plugin - see the main build repository for more information.
Content type
Image
Digest
Size
4 MB
Last updated
over 6 years ago
docker pull redditopenttd/cdn_version_scraper