linkerd2/bin/update-go-deps-shas

14 lines
374 B
Bash
Executable File

#!/bin/sh
set -eu
# Updates the tag for `linkerd-io/go-deps` across all Dockerfiles in this repository.
# shellcheck source=_tag.sh
sha=$(. "${0%/*}"/_tag.sh ; go_deps_sha)
for f in $( grep -lR --include=Dockerfile\* go-deps: "$(cd "${0%/*}"/.. && pwd)" | xargs ) ; do
sed -E -i.bak -e "s|linkerd-io/go-deps:[^ ]+|linkerd-io/go-deps:$sha|" "$f"
rm "$f".bak
done