Created
January 15, 2019 05:21
-
-
Save sim2github/50aaeaa4224ddfe66e853ac6d935bb70 to your computer and use it in GitHub Desktop.
Download latest release with curl example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RUN export LATEST_PROTO_VERSION=$(curl -sL https://api.github.com/repos/protocolbuffers/protobuf/releases/latest | grep '"tag_name":' | cut -d: -f2 | cut -c4-8) && \ | |
curl -sL https://github.com/protocolbuffers/protobuf/releases/download/v${LATEST_PROTO_VERSION}/protoc-${LATEST_PROTO_VERSION}-linux-x86_64.zip -o proto.zip && \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment