mirror of https://github.com/linkerd/linkerd2.git
22 lines
365 B
Bash
Executable File
22 lines
365 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Builds (or pulls) our go-deps docker image.
|
|
|
|
set -eu
|
|
|
|
if [ $# -ne 0 ]; then
|
|
echo "no arguments allowed for $(basename $0), given: $@" >&2
|
|
exit 64
|
|
fi
|
|
|
|
. bin/_docker.sh
|
|
. bin/_tag.sh
|
|
|
|
tag=$(go_deps_sha)
|
|
|
|
if (docker_pull go-deps "${tag}"); then
|
|
echo "$(docker_repo go-deps):${tag}"
|
|
else
|
|
docker_build go-deps "${tag}" Dockerfile-go-deps
|
|
fi
|