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