forked from namely/docker-protoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·29 lines (26 loc) · 1.18 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash -e
source ./variables.sh
for build in ${BUILDS[@]}; do
tag=${CONTAINER}/${build}:${VERSION}
echo "building ${build} container with tag ${tag}"
docker build -t ${tag} \
-f Dockerfile \
--build-arg grpc_version=${GRPC_VERSION} \
--build-arg grpc_java_version=${GRPC_JAVA_VERSION} \
--build-arg grpc_web_version=${GRPC_WEB_VERSION} \
--build-arg grpc_gateway_version=${GRPC_GATEWAY_VERSION} \
--build-arg go_version=${GO_VERSION} \
--build-arg uber_prototool_version=${UBER_PROTOTOOL_VERSION} \
--build-arg scala_pb_version=${SCALA_PB_VERSION} \
--build-arg node_version=${NODE_VERSION} \
--build-arg node_grpc_tools_node_protoc_ts_version=${NODE_GRPC_TOOLS_NODE_PROTOC_TS_VERSION} \
--build-arg node_grpc_tools_version=${NODE_GRPC_TOOLS_VERSION} \
--build-arg node_protoc_gen_grpc_web_version=${NODE_PROTOC_GET_GRPC_WEB_VERSION} \
--build-arg go_envoyproxy_pgv_version=${GO_ENVOYPROXY_PGV_VERSION} \
--target ${build} \
.
if [ "${LATEST}" = true ]; then
echo "setting ${tag} to latest"
docker tag ${tag} ${CONTAINER}/${build}:latest
fi
done