From ca83370736f38823c1781f2856935d7fd11be450 Mon Sep 17 00:00:00 2001 From: Michael Nelson Date: Mon, 1 May 2023 10:05:48 +1000 Subject: [PATCH] Revert and fix so that latest tag is used in dev chart PRs. Signed-off-by: Michael Nelson --- script/chart_sync_utils.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/chart_sync_utils.sh b/script/chart_sync_utils.sh index 611c1cc4550..1b38eb2c28d 100755 --- a/script/chart_sync_utils.sh +++ b/script/chart_sync_utils.sh @@ -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" } @@ -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" }