mirror of
https://github.com/mariadb-operator/mariadb-operator.git
synced 2025-07-25 01:28:31 +00:00
Added olm-release workflow
This commit is contained in:
@ -1,10 +1,19 @@
|
||||
name: OLM draft
|
||||
name: OLM release
|
||||
|
||||
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:
|
||||
draft-release:
|
||||
release:
|
||||
name: Release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@ -19,11 +28,11 @@ jobs:
|
||||
GITHUB_TOKEN: "${{ secrets.GHA_TOKEN }}"
|
||||
with:
|
||||
name: "mariadb-operator-enterprise"
|
||||
version: "$(make version)-draft-$(uuidgen)"
|
||||
version: "${{ inputs.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: true
|
||||
draft: ${{ inputs.draft }}
|
20
.github/workflows/olm.yml
vendored
20
.github/workflows/olm.yml
vendored
@ -129,18 +129,10 @@ jobs:
|
||||
tag_name: "${{ needs.args.outputs.TAG }}"
|
||||
files: deploy/olm/manifests/mariadb-operator-enterprise.clusterserviceversion.yaml
|
||||
|
||||
- name: Operator PR
|
||||
uses: mariadb-operator/openshift-operator-pr@v1
|
||||
- name: Dispatch olm-release workflow
|
||||
run: |
|
||||
gh workflow run olm-release.yml \
|
||||
--repo mariadb-operator/mariadb-operator \
|
||||
-f version=${{ needs.args.outputs.VERSION }} draft=true
|
||||
env:
|
||||
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
|
||||
GITHUB_TOKEN: "${{ secrets.GHA_TOKEN }}"
|
Reference in New Issue
Block a user