You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 'v[0-9]+.[0-9]+.0'# run this workflow when a new minor version is published
5
+
- "v[0-9]+.[0-9]+.0"# run this workflow when a new minor version is published
6
6
workflow_dispatch:
7
7
inputs:
8
8
release_version:
9
-
description: 'Which version are we creating a release pull request for?'
9
+
description: "Which version are we creating a release pull request for?"
10
10
required: true
11
11
12
12
permissions:
@@ -98,6 +98,23 @@ jobs:
98
98
branch: "release-${{ env.NEWVERSION }}"
99
99
base: "${{ env.TARGET_BRANCH }}"
100
100
signoff: true
101
+
body: |
102
+
## Release Preparation Checklist
103
+
104
+
Before merging this PR, please ensure the following items are completed:
105
+
106
+
### Pre-Release Dependencies Check
107
+
- [ ] **Dependabot PRs**: All open [Dependabot PRs](https://github.com/open-policy-agent/gatekeeper/pulls?q=is%3Apr+author%3Aapp%2Fdependabot) have been reviewed and merged
108
+
- [ ] **OPA**: Updated to latest stable version from [OPA releases](https://github.com/open-policy-agent/opa/releases)
109
+
- [ ] **cert-controller**: Updated to latest commit from [cert-controller](https://github.com/open-policy-agent/cert-controller/)
110
+
- [ ] **Constraint Framework**: Updated to latest commit from [frameworks releases](https://github.com/open-policy-agent/frameworks/)
111
+
112
+
### Security Check
113
+
- [ ] **Trivy Scan**: [Latest vulnerability scan](https://github.com/open-policy-agent/gatekeeper/actions/workflows/scan-vulns.yaml?query=branch%3Amaster) passes with no detected vulnerabilities
114
+
115
+
---
116
+
117
+
This PR prepares release ${{ env.NEWVERSION }}. All automated checks must pass before merging.
Copy file name to clipboardExpand all lines: docs/RELEASE.md
+26-6Lines changed: 26 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
The release process consists of three phases: versioning, building, and publishing.
6
6
7
7
Versioning involves maintaining the following files:
8
+
8
9
-**Makefile** - the Makefile contains a VERSION variable that defines the version of the project.
9
10
-**manager.yaml** - the controller-manager deployment yaml contains the latest release tag image of the project.
10
11
-**gatekeeper.yaml** - the gatekeeper.yaml contains all gatekeeper resources to be deployed to a cluster including the latest release tag image of the project.
@@ -20,6 +21,7 @@ Publishing involves creating a release tag and creating a new *Release* on GitHu
20
21
There is an optional script for cherry-picking PRs that should make the process easier.
21
22
22
23
Prerequisites:
24
+
23
25
-`hub` binary is installed. If not, `hub` can be installed by `go get github.com/github/hub`.
24
26
- Set GitHub username with `export GITHUB_USER=<your GitHub username>`
25
27
- Set fork remote with `export FORK_REMOTE=<your fork remote name, by default it is "origin">`
@@ -64,16 +66,34 @@ Before we cut a release, we need to create a release pull request against the HE
64
66
65
67
During the workflow, it will create the release manifests, promote the manifests from `manifest_staging/charts` and `manifest_staging/deploy` to `charts` and `deploy` folders respectively, and create the release pull request on behalf of the release author.
66
68
69
+
## Additional Pre-Release Checklist
70
+
71
+
Before creating a release pull request, ensure the following steps are completed:
72
+
73
+
1.**Dependabot PRs**
74
+
- Ensure all [Dependabot PRs](https://github.com/open-policy-agent/gatekeeper/pulls?q=is%3Apr+author%3Aapp%2Fdependabot) are reviewed and merged. This keeps dependencies up to date and secure.
75
+
76
+
2.**Dependency Updates**
77
+
- Confirm that the following dependencies are updated to their latest stable versions or commits:
- Reference the relevant repositories and check for new releases.
82
+
83
+
3.**Vulnerability Scanning**
84
+
- Ensure [Trivy](https://github.com/aquasecurity/trivy) scans are passing and no vulnerabilities are detected in the latest CI run.
85
+
- Review the [latest Trivy scan results](https://github.com/open-policy-agent/gatekeeper/actions/workflows/scan-vulns.yaml?query=branch%3Amaster) before proceeding.
86
+
67
87
## Building and releasing
68
88
69
89
1. Once the release pull request is merged to `master` or `release` branch (`<BRANCH NAME>` below), tag that commit with release version and push tags to remote repository.
70
90
71
-
```
72
-
git checkout <BRANCH NAME>
73
-
git pull origin <BRANCH NAME>
74
-
git tag -a <NEW VERSION> -m '<NEW VERSION>'
75
-
git push origin <NEW VERSION>
76
-
```
91
+
```shell
92
+
git checkout <BRANCH NAME>
93
+
git pull origin <BRANCH NAME>
94
+
git tag -a <NEW VERSION> -m '<NEW VERSION>'
95
+
git push origin <NEW VERSION>
96
+
```
77
97
78
98
1. Pushing the release tag will trigger GitHub Actions to trigger `tagged-release` job.
79
99
This will build the `openpolicyagent/gatekeeper` image automatically, then publish the new release image tag and the `latest` image tag to the `openpolicyagent/gatekeeper` repository. Finally, verify step will run e2e tests to verify the newly released tag.
0 commit comments