linkerd2/bin/update-go-deps-shas

13 lines
308 B
Bash
Executable File

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