Skip to content

Instantly share code, notes, and snippets.

@sim2github
Created January 15, 2019 05:21
Show Gist options
  • Save sim2github/50aaeaa4224ddfe66e853ac6d935bb70 to your computer and use it in GitHub Desktop.
Save sim2github/50aaeaa4224ddfe66e853ac6d935bb70 to your computer and use it in GitHub Desktop.
Download latest release with curl example
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