File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -126,13 +126,28 @@ process_config_file() {
126
126
fi
127
127
128
128
# Process MarketplaceItems
129
+ local yq_script=' del(.ManagementConsole)'
130
+
129
131
if [ " $LATEST " = true ]; then
130
132
# Set all versions to "latest" if --latest flag is present
131
- yq eval ' del(.ManagementConsole) | .MarketplaceItems[].version = "latest"' " $1 "
133
+ yq_script+= ' | .MarketplaceItems[].version = "latest"'
132
134
else
133
- # Just return the MarketplaceItems section without ManagementConsole
134
- yq eval ' del(.ManagementConsole) | .MarketplaceItems' " $1 "
135
+ # Update specific versions if parameters are provided
136
+ if [ -n " $UNITY_CS_MONITORING_LAMBDA_VERSION " ]; then
137
+ yq_script+=' | (.MarketplaceItems[] | select(.name == "unity-cs-monitoring-lambda").version) = "' $UNITY_CS_MONITORING_LAMBDA_VERSION ' "'
138
+ fi
139
+ if [ -n " $UNITY_APIGATEWAY_VERSION " ]; then
140
+ yq_script+=' | (.MarketplaceItems[] | select(.name == "unity-apigateway").version) = "' $UNITY_APIGATEWAY_VERSION ' "'
141
+ fi
142
+ if [ -n " $UNITY_PROXY_VERSION " ]; then
143
+ yq_script+=' | (.MarketplaceItems[] | select(.name == "unity-proxy").version) = "' $UNITY_PROXY_VERSION ' "'
144
+ fi
145
+ if [ -n " $UNITY_UI_VERSION " ]; then
146
+ yq_script+=' | (.MarketplaceItems[] | select(.name == "unity-ui").version) = "' $UNITY_UI_VERSION ' "'
147
+ fi
135
148
fi
149
+
150
+ yq eval " $yq_script " " $1 "
136
151
else
137
152
echo " []"
138
153
fi
You can’t perform that action at this time.
0 commit comments