File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ version="$2"
2929url=" $3 "
3030
3131readme_path=" README.md"
32+ # Strip the leading v from the version string
33+ at_version=" ${version# v} "
3234at_versions_path=" k8s/cloud/public/base/artifact_tracker_versions.yaml"
3335
3436latest_release_comment=" <!--${artifact_type} -latest-release-->"
@@ -49,7 +51,7 @@ latest_release_line() {
4951# environment variable is uppercased
5052artifact_tracker_env_name=" PL_${artifact_type^^} _VERSION"
5153
52- yq -i " .spec.template.spec.containers[] |= select(.name == \" artifact-tracker-server\" ).env[] |= select(.name == \" ${artifact_tracker_env_name} \" ).value = \" ${version } \" " " ${at_versions_path} "
54+ yq -i " .spec.template.spec.containers[] |= select(.name == \" artifact-tracker-server\" ).env[] |= select(.name == \" ${artifact_tracker_env_name} \" ).value = \" ${at_version } \" " " ${at_versions_path} "
5355
5456sed -i ' s|.*' " ${latest_release_comment} " ' .*|' " $( latest_release_line) " ' |' " ${readme_path} "
5557
You can’t perform that action at this time.
0 commit comments