Skip to content

Commit

Permalink
Add policy-cli to Prow update
Browse files Browse the repository at this point in the history
Signed-off-by: Dale Haiducek <[email protected]>
  • Loading branch information
dhaiducek authored and openshift-merge-bot[bot] committed Jan 13, 2025
1 parent 28a7fbc commit 7960218
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions build/branch-create/repo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ stolostron/governance-policy-framework-addon
stolostron/governance-policy-propagator
stolostron/policy-generator-plugin
stolostron/must-gather
stolostron/policy-cli
stolostron/acm-cli
7 changes: 4 additions & 3 deletions build/branch-create/update-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,14 @@ for dirpath in ${COMPONENT_LIST}; do
yq e '.promotion.to[0].disabled=true' -i ${NEW_FILENAME}
# - For the 'main' branch:
ver="${NEW_VERSION}" yq e '.promotion.to[0].name=strenv(ver)' -i ${FILE_PREFIX}-main.yaml
ver="${NEW_VERSION}" \
yq e '.tests[] |= select(.as=="git-fast-forward").steps.env.DESTINATION_BRANCH = "release-"+strenv(ver)' -i ${FILE_PREFIX}-main.yaml

# - For the old version, re-enable promotion:
yq e 'del(.promotion.to[0].disabled)' -i ${OLD_FILENAME}
fi

# Update fast-forwarding on the main branch
ver="${NEW_VERSION}" \
yq e '.tests[] |= select(.as=="git-fast-forward").steps.env.DESTINATION_BRANCH = "release-"+strenv(ver)' -i ${FILE_PREFIX}-main.yaml

# Update the 'latest-image-mirror' tests item
ver="${NEW_VERSION}" yq e '.tests[] |= select(.as=="latest-image-mirror").steps.env.IMAGE_TAG="latest-"+env(ver)' -i ${NEW_FILENAME}

Expand Down

0 comments on commit 7960218

Please sign in to comment.