mirror of https://github.com/grpc/grpc-java.git
buildscripts: Update protoc-artifacts to 3.7.0
This was missed from d7e53e871
Also added missing --tmpdir, to avoid extracting protobuf
into the current directory.
This commit is contained in:
parent
b4af5ad986
commit
e7a635d882
|
|
@ -1,10 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eu -o pipefail
|
set -eu -o pipefail
|
||||||
|
|
||||||
readonly proto_dir="$(mktemp -d protobuf.XXXXXX)"
|
readonly proto_dir="$(mktemp -d --tmpdir protobuf.XXXXXX)"
|
||||||
# Download an unreleased SHA to include TLS 1.2 support:
|
wget -O - https://github.com/google/protobuf/archive/v3.7.0.tar.gz | tar xz -C "$proto_dir"
|
||||||
# https://github.com/google/protobuf/pull/4879
|
|
||||||
wget -O - https://github.com/google/protobuf/archive/61476b8e74357ea875f71bb321874ca4530b7d50.tar.gz | tar xz -C "$proto_dir"
|
|
||||||
|
|
||||||
docker build -t protoc-artifacts "$proto_dir"/protobuf-61476b8e74357ea875f71bb321874ca4530b7d50/protoc-artifacts
|
docker build -t protoc-artifacts "$proto_dir"/protobuf-3.7.0/protoc-artifacts
|
||||||
rm -r "$proto_dir"
|
rm -r "$proto_dir"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue