From 61e091d9840b9cccf7bd6655b0c29ee6273a57dd Mon Sep 17 00:00:00 2001 From: Jim Campbell Date: Fri, 24 Jan 2025 10:13:29 -0500 Subject: [PATCH] yq fix for journal release script --- bin/pr-release-journals | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bin/pr-release-journals b/bin/pr-release-journals index fe74971..c006adc 100755 --- a/bin/pr-release-journals +++ b/bin/pr-release-journals @@ -15,12 +15,15 @@ manifest="charts/journals/values.yaml" # replace blank lines with marker sed -i '/^$/s// #BLANK_LINE/' $manifest -# update image tag -yq --style=double w $manifest image.tag $CIRCLE_TAG -i +# sometimes this works +# yq --style=double w $manifest image.tag $CIRCLE_TAG -i -# some versions of yq use this +# sometimes this works # yq -i ".image.tag=\"$CIRCLE_TAG\"" "$manifest" +# copilot suggested this +yq eval '.image.tag = strenv(CIRCLE_TAG)' -i $manifest + # restore blank lines sed -i "s/ *#BLANK_LINE//g" $manifest