linkerd2/bin/docker-build-cli

25 lines
411 B
Bash
Executable File

#!/bin/sh
set -eu
. bin/_docker.sh
. bin/_tag.sh
if [ $# -eq 0 ]; then
tag="$(clean_head_root_tag)"
elif [ $# -eq 1 ]; then
tag="${1:-}"
else
echo "usage: $(basename $0) [tag]" >&2
exit 64
fi
# Build gcr.io/runconduit/cli-bin, which is used by cli/Dockerfile.
bin/docker-build-cli-bin "${tag}" >/dev/null
docker_maybe_build . \
"$(docker_repo cli)" \
"${tag}" \
cli/Dockerfile