mirror of
https://github.com/mariadb-operator/mariadb-operator.git
synced 2025-08-11 23:55:17 +00:00
Added olm-release workflow
This commit is contained in:
@ -1,10 +1,19 @@
|
|||||||
name: OLM draft
|
name: OLM release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: {}
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
version:
|
||||||
|
description: Operator version to be released in "redhat-openshift-ecosystem/certified-operators".
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
draft:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
description: Mark the PR as draft.
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
draft-release:
|
release:
|
||||||
name: Release
|
name: Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@ -19,11 +28,11 @@ jobs:
|
|||||||
GITHUB_TOKEN: "${{ secrets.GHA_TOKEN }}"
|
GITHUB_TOKEN: "${{ secrets.GHA_TOKEN }}"
|
||||||
with:
|
with:
|
||||||
name: "mariadb-operator-enterprise"
|
name: "mariadb-operator-enterprise"
|
||||||
version: "$(make version)-draft-$(uuidgen)"
|
version: "${{ inputs.version }}"
|
||||||
fork-repo-name: "mariadb-operator/certified-operators"
|
fork-repo-name: "mariadb-operator/certified-operators"
|
||||||
upstream-repo-name: "redhat-openshift-ecosystem/certified-operators"
|
upstream-repo-name: "redhat-openshift-ecosystem/certified-operators"
|
||||||
bundle-path-dir: "deploy/olm"
|
bundle-path-dir: "deploy/olm"
|
||||||
ci-path-file: "deploy/olm/ci.yaml"
|
ci-path-file: "deploy/olm/ci.yaml"
|
||||||
user-name: "Martin Montes"
|
user-name: "Martin Montes"
|
||||||
user-email: "martin11lrx@gmail.com"
|
user-email: "martin11lrx@gmail.com"
|
||||||
draft: true
|
draft: ${{ inputs.draft }}
|
18
.github/workflows/olm.yml
vendored
18
.github/workflows/olm.yml
vendored
@ -129,18 +129,10 @@ jobs:
|
|||||||
tag_name: "${{ needs.args.outputs.TAG }}"
|
tag_name: "${{ needs.args.outputs.TAG }}"
|
||||||
files: deploy/olm/manifests/mariadb-operator-enterprise.clusterserviceversion.yaml
|
files: deploy/olm/manifests/mariadb-operator-enterprise.clusterserviceversion.yaml
|
||||||
|
|
||||||
- name: Operator PR
|
- name: Dispatch olm-release workflow
|
||||||
uses: mariadb-operator/openshift-operator-pr@v1
|
run: |
|
||||||
|
gh workflow run olm-release.yml \
|
||||||
|
--repo mariadb-operator/mariadb-operator \
|
||||||
|
-f version=${{ needs.args.outputs.VERSION }} draft=true
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: "${{ secrets.GHA_TOKEN }}"
|
GITHUB_TOKEN: "${{ secrets.GHA_TOKEN }}"
|
||||||
with:
|
|
||||||
name: "mariadb-operator-enterprise"
|
|
||||||
version: "${{ needs.args.outputs.VERSION }}"
|
|
||||||
fork-repo-name: "mariadb-operator/certified-operators"
|
|
||||||
upstream-repo-name: "redhat-openshift-ecosystem/certified-operators"
|
|
||||||
bundle-path-dir: "deploy/olm"
|
|
||||||
ci-path-file: "deploy/olm/ci.yaml"
|
|
||||||
user-name: "Martin Montes"
|
|
||||||
user-email: "martin11lrx@gmail.com"
|
|
||||||
draft: false
|
|
||||||
dry-run: true
|
|
Reference in New Issue
Block a user