https://github.com/mariadb-operator/openshift-operator-pr
⛑️ GitHub action to submit PRs to OpenShift operator repositories
https://github.com/mariadb-operator/openshift-operator-pr
github-action kubernetes kubernetes-operator olm olm-operators openshift openshift-operator operator pull-request
Last synced: 3 months ago
JSON representation
⛑️ GitHub action to submit PRs to OpenShift operator repositories
- Host: GitHub
- URL: https://github.com/mariadb-operator/openshift-operator-pr
- Owner: mariadb-operator
- License: mit
- Created: 2024-07-16T13:43:26.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-07-17T09:37:07.000Z (10 months ago)
- Last Synced: 2025-01-14T03:12:48.723Z (4 months ago)
- Topics: github-action, kubernetes, kubernetes-operator, olm, olm-operators, openshift, openshift-operator, operator, pull-request
- Homepage:
- Size: 343 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ⛑️ openshift-operator-pr
[](https://github.com/mariadb-operator/openshift-operator-pr/actions/workflows/ci.yaml)
GitHub action to submit PRs to OpenShift operator repositories.
### Operator repositories
- [k8s-operatorhub/community-operators](https://github.com/k8s-operatorhub/community-operators)
- [redhat-openshift-ecosystem/community-operators-prod](https://github.com/redhat-openshift-ecosystem/community-operators-prod)
- [redhat-openshift-ecosystem/certified-operators](https://github.com/redhat-openshift-ecosystem/certified-operators)### Before using this action
- Fork the [operator repositories](#operator-repositories) you are willing to submit your operator to.
- Get a GitHub PAT with write access to the previous repo.### Usage
```yaml
name: Releaseon:
push:
tags:
- "*"jobs:
operator-pr:
name: Version
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0- name: Fetch tags
run: git fetch --force --tags- name: Get Version
id: version
run: |
VERSION=sha-${GITHUB_SHA::8}
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF/refs\/tags\//}
fi
echo ::set-output name=version::${VERSION}# TODO:
# - Generate bundle
# - Push bundle image to a registry- name: Operator PR
uses: mariadb-operator/openshift-operator-pr@v1
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
name: "mariadb-operator"
version: "${{ steps.version.outputs.version }}"
fork-repo-name: "mariadb-operator/community-operators"
upstream-repo-name: "k8s-operatorhub/community-operators"
bundle-path-dir: "deploy/olm"
ci-path-file: "deploy/olm/ci.yaml"
user-name: "Martin Montes"
user-email: "[email protected]"
```> [!NOTE]
> The paths provided in the previous example match the manifests available in the current repository.### Example PRs
- https://github.com/redhat-openshift-ecosystem/certified-operators/pull/4154