Download the latest release/tag from online SVN tools like github. It determines based on the API which is the latest release or tag and downloads the package based on your architecture. This app is inspired by the python app lastversion.
This tool is ideally to use in build scripts, like docker containers or in CI environments.
- Determine latest release/tag for given project
- Pin to a minor, to download always the latest patch
- Pin to a major, to download always the latest minor
# Download latest release
reget github <owner>/<repo>
# Download latest tag
reget github <owner>/<repo> -t/--use-tag
# Download latest release and save it with custom filename
reget github <owner>/<repo> -o/--output local_filename.tar.gz
# Download and pin on Major release 1
reget github <owner>/<repo> -p/--pinned-release 1
# Download and pin on Minor release 1.10 (will download 1.10.5)
reget github <owner>/<repo> -p/--pinned-release 1.10
# Download and pin on full release 1.10.3 (do not download any other version)
reget github <owner>/<repo> -r/--release 1.10.3
# Download latest release
reget pecl <package>
# Download latest release and save it with custom filename
reget pecl <package> -o/--output local_filename.tar.gz
# Download and pin on Major release 1
reget pecl <package> -p/--pinned-release 1
# Download and pin on Minor release 1.10 (will download 1.10.5)
reget pecl <package> -p/--pinned-release 1.10
# Download and pin on full release 1.10.3 (do not download any other version)
reget pecl <package> -r/--release 1.10.3
brew tap januznl/januznl
brew install reget
FROM example
...
COPY --from=januznl/reget:latest /reget /reget
...
- Add other SVN's than github