Skip to content

Commit 707226d

Browse files
skyerusAlexsJones
andauthored
ci: release please (#84)
* ci: release please Signed-off-by: Skye Gill <[email protected]> * Updated bootstrap-sha. Included releases section in readme. Signed-off-by: Skye Gill <[email protected]> Signed-off-by: Skye Gill <[email protected]> Co-authored-by: Alex Jones <[email protected]>
1 parent 58cdd4e commit 707226d

File tree

5 files changed

+58
-0
lines changed

5 files changed

+58
-0
lines changed

.github/workflows/pr-lint.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: "Lint PR"
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
main:
12+
name: Validate PR title
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: amannn/action-semantic-pull-request@v4
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Run Release Please
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
release-please:
9+
runs-on: ubuntu-latest
10+
11+
# Release-please creates a PR that tracks all changes
12+
steps:
13+
- uses: google-github-actions/release-please-action@v3
14+
id: release
15+
with:
16+
command: manifest
17+
token: ${{secrets.GITHUB_TOKEN}}
18+
default-branch: main

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.0.9"
3+
}

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ The open-feature-operator is a Kubernetes native operator that allows you to exp
1111

1212
_Requires [cert manager](https://cert-manager.io/docs/installation/kubernetes/) installed_
1313

14+
<!---x-release-please-start-version-->
1415
```
1516
kubectl create namespace open-feature-operator-system
1617
kubectl apply -f https://github.com/open-feature/open-feature-operator/releases/download/v0.1.1/certificate.yaml
1718
kubectl apply -f https://github.com/open-feature/open-feature-operator/releases/download/v0.1.1/release.yaml
1819
```
20+
<!---x-release-please-end-->
1921

2022
### Architecture
2123

@@ -98,3 +100,7 @@ root@nginx:/# curl -X POST localhost:8013/flags/foo/resolve/string
98100
1. Visit `http://localhost:30000/`
99101
1. Update the value of the `defaultVariant` field in the custom resource instance in `config/samples/end-to-end.yaml` and re-apply to update the flag value!
100102
1. Visit `http://localhost:30000/` and see the change!
103+
104+
## Releases
105+
106+
This repo uses _Release Please_ to release packages. Release Please sets up a running PR that tracks all changes for the library components, and maintains the versions according to [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/), generated when [PRs are merged](https://github.com/amannn/action-semantic-pull-request). When Release Please's running PR is merged, any changed artifacts are published.

release-please-config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"bootstrap-sha": "7d099c7b72f9a7430581696218458eaee31fb0df",
3+
"packages": {
4+
".": {
5+
"release-type": "go",
6+
"prerelease": false,
7+
"bump-minor-pre-major": true,
8+
"bump-patch-for-minor-pre-major": true,
9+
"extra-files": [
10+
"README.md"
11+
]
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)