Added olm-release workflow

This commit is contained in:
mmontes11
2024-09-03 12:03:01 +02:00
committed by Martin Montes
parent fedd98488b
commit 0a165ef682
2 changed files with 20 additions and 19 deletions

View File

@ -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 }}

View File

@ -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 }}"