Download the latest version of a GitHub release file
508
Ever want to download a file from the latest release of a github project?
Longing for https://github.com/me/stuff/releases/download/LATEST/mystuff?
Look no further!
Run the proxy. Replace <token> with a GitHub personal access token and <whitelist>
with a comma separated list of GitHub organizations or users that your proxy should handle.
$ docker run -e GITHUB_TOKEN=<token> -e WHITELIST=<whitelist> -d -P rackerlabs/github-release-proxy
Run the following command to get your proxy's address and port.
$ docker port $(docker ps -lq) | cut -d ' ' -f3
104.130.0.29:32813
WHITELIST is required. It prevents accidentally acting as a proxy for
all of GitHub. It is a comma separated list of users and organizations which
are allowed to use the proxy. For example: myuser,myorg.
GITHUB_TOKEN is optional but recommended. Without it requests to GitHub will be severely rate limited.
CACHE_TIMEOUT is optional and defaults to 60 seconds. Specifies how long requests
to both this proxy and GitHub should be cached.
Build URLs using the following template. Replace <proxy> with the value from step 3.
http://<proxy>/<org>/<repo>/latest/<releaseFileName>
For example, if your release file is located at https://github.com/getcarina/dvm/releases/download/0.1.3/install.sh
then the proxy url would be https://<proxy>/getcarina/dvm/latest/install.sh.
Content type
Image
Digest
sha256:9af319feb…
Size
255.5 MB
Last updated
about 11 years ago
docker pull carolynvs/github-release-proxy