Skip to content

Commit

Permalink
Fix path for the build profile (istio#23924)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shamsher Ansari authored May 18, 2020
1 parent a7f6377 commit a677b02
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions operator/scripts/run_update_branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ WD=$(dirname "$0")
WD=$(cd "$WD"; pwd)
ROOT=$(dirname "$WD")

MANIFESTS_DIR="${ROOT}/../manifests"

function update_branch() {
local FROM="${1}"
local TO="${2}"
Expand All @@ -30,8 +32,8 @@ function update_branch() {
# Update version string in docs.
sed -i "s|blob/${FROM}|blob/${TO}|g" "${ROOT}"/ARCHITECTURE.md
sed -i "s|blob/${FROM}|blob/${TO}|g" "${ROOT}"/README.md
# Update tag for buildin profiles.
find "${ROOT}"/data/profiles -type f -exec sed -i "s/tag: ${FROM}-latest-daily/tag: ${TO}-latest-daily/g" {} \;
# Update tag for building profiles.
find "${MANIFESTS_DIR}"/profiles -type f -exec sed -i "s/tag: ${FROM}-latest-daily/tag: ${TO}-latest-daily/g" {} \;
# Update tag for testdata.
find "${ROOT}"/cmd/mesh/testdata -type f -exec sed -i "s/tag: ${FROM}-latest-daily/tag: ${TO}-latest-daily/g" {} \;
find "${ROOT}"/pkg/values/testdata -type f -exec sed -i "s/tag: ${FROM}-latest-daily/tag: ${TO}-latest-daily/g" {} \;
Expand Down

0 comments on commit a677b02

Please sign in to comment.