mirror of https://github.com/linkerd/linkerd2.git
15 lines
383 B
Bash
Executable File
15 lines
383 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
# Updates the tag for `runconduit/go-deps` across all Dockerfiles in this repository.
|
|
|
|
bindir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
sha=$(. $bindir/_tag.sh ; go_deps_sha)
|
|
|
|
for f in $( grep -lR --include=Dockerfile\* go-deps: $bindir/.. ) ; do
|
|
sed -E -i.bak -e "s|runconduit/go-deps:[^ ]+|runconduit/go-deps:${sha}|" "$f"
|
|
rm "$f".bak
|
|
done
|