Skip to content

Commit

Permalink
Revert and fix so that latest tag is used in dev chart PRs.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Nelson <minelson@vmware.com>
  • Loading branch information
absoludity committed May 1, 2023
1 parent 2e0ad79 commit ca83370
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/chart_sync_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ replaceImage_latestToProduction() {

# Replace image and tag from the values.yaml
sed -i.bk -e '1h;2,$H;$!d;g' -re \
's/repository: '${currentImageEscaped}'\n tag: latest/repository: '${targetImageEscaped}'\n tag: '${tag}'/g' \
's/repository: '${currentImageEscaped}'\n tag: latest/repository: '${targetImageEscaped}'\n/g' \
"${FILE}"
rm "${FILE}.bk"
}
Expand Down Expand Up @@ -160,7 +160,7 @@ replaceImage_productionToLatest() {

# Replace image and tag from the values.yaml
sed -i.bk -e '1h;2,$H;$!d;g' -re \
's/repository: '${currentImageEscaped}'\n/repository: '${targetImageEscaped}'\n/g' \
's/repository: '${currentImageEscaped}'\n tag: \S*/repository: '${targetImageEscaped}'\n tag: latest/g' \
"${FILE}"
rm "${FILE}.bk"
}
Expand Down

0 comments on commit ca83370

Please sign in to comment.