Skip to content

Commit

Permalink
Update upstream release script with instructions
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 Oct 18, 2024
1 parent 678757e commit f8df0bf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
12 changes: 7 additions & 5 deletions build/main-branch-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

1. Export the new `vX.Y.Z` version to be released to `NEW_RELEASE`.
2. Run `upstream-release.sh`.
3. Follow the directions printed to the screen by the script.

## Refreshing builds with a no-op PR

Expand All @@ -25,21 +26,22 @@
- `yq` installed
- Write access to the repos

1. Add or remove an owner to the `OWNERS` files of all repos (these can both be exported on the same run of the script):
1. Add or remove an owner to the `OWNERS` files of all repos (these can both be exported on the same
run of the script):
- To add an owner to all repos: `export NEW_OWNER=<github-user-id>`
- To remove an owner from all repos: `export DELETE_OWNER=<github-user-id>`
2. Change to the `main-branch-sync/` directory.
3. Either:
- Verify the repos listed in `repo.txt`
- Use the `fetch-repo-list.sh` script to dynamically fetch a list of repos for a team (the script defaults to team
`sig-policy` in org `open-cluster-management-io`):
- Use the `fetch-repo-list.sh` script to dynamically fetch a list of repos for a team (the script
defaults to team `sig-policy` in org `open-cluster-management-io`):
```shell
export GITHUB_TOKEN=<github-token>
export GITHUB_ORG=<org-name> # Exporting this is mandatory for `update-owners.sh` if the value is not "stolostron"
export REPOS=$(./fetch-repo-list.sh)
```
4. Run the `update-owners.sh` script. (It will update the files in each repo and push a new branch to the repo with the
updates and then provide a URL to open the PRs.)
4. Run the `update-owners.sh` script. (It will update the files in each repo and push a new branch
to the repo with the updates and then provide a URL to open the PRs.)

## Rotating CI secrets

Expand Down
17 changes: 16 additions & 1 deletion build/main-branch-sync/upstream-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,22 @@ for REPO in ${REPOS}; do
${GIT} push origin ${NEW_RELEASE}
done

echo "=== View the new releases"
echo "=== Review and submit the new releases (GitHub Actions may still be running to create them)"
for REPO in ${REPOS}; do
echo "* https://github.com/${REPO}/releases/tag/${NEW_RELEASE}"
done

echo
echo '=== Next steps
* Create a new release for the policy generator if needed:
- https://github.com/open-cluster-management-io/policy-generator-plugin
* If a new generator release was needed, update the POLICY_GENERATOR_TAG variable in all applicable AppSub Dockerfiles:
- https://github.com/open-cluster-management-io/multicloud-operators-subscription/tree/main/build
* Verify the propagator and addon-controller manifests in clusteradm:
- https://github.com/open-cluster-management-io/clusteradm/tree/main/pkg/cmd/install/hubaddon/scenario/addon/policy
Reference manifests:
- https://github.com/open-cluster-management-io/governance-policy-propagator/tree/main/deploy
- https://github.com/open-cluster-management-io/governance-policy-addon-controller/tree/main/config'

0 comments on commit f8df0bf

Please sign in to comment.