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:
Eric Anderson 2019-03-13 13:43:21 -06:00 committed by GitHub
parent b4af5ad986
commit e7a635d882
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -1,10 +1,8 @@
#!/bin/bash
set -eu -o pipefail
readonly proto_dir="$(mktemp -d protobuf.XXXXXX)"
# Download an unreleased SHA to include TLS 1.2 support:
# https://github.com/google/protobuf/pull/4879
wget -O - https://github.com/google/protobuf/archive/61476b8e74357ea875f71bb321874ca4530b7d50.tar.gz | tar xz -C "$proto_dir"
readonly proto_dir="$(mktemp -d --tmpdir protobuf.XXXXXX)"
wget -O - https://github.com/google/protobuf/archive/v3.7.0.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"