From 943eb71117413723e0eb1117406fe39977a09c70 Mon Sep 17 00:00:00 2001 From: Joao Marcal Date: Wed, 6 Mar 2024 19:14:38 +0000 Subject: [PATCH] chore(operator): adds automatic triggers to release the operator --- .../operator-publish-operator-hub.yml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/operator-publish-operator-hub.yml diff --git a/.github/workflows/operator-publish-operator-hub.yml b/.github/workflows/operator-publish-operator-hub.yml new file mode 100644 index 0000000000000..98cb588b47a1f --- /dev/null +++ b/.github/workflows/operator-publish-operator-hub.yml @@ -0,0 +1,23 @@ +name: "Publish release on operator hub" +on: + release: + types: [published] + +jobs: + operator-hub-prod-release: + if: startsWith(${{ github.event.release.tag_name }}, 'operator/') + uses: ./.github/workflows/reusable-operator-hub-release.yaml + with: + org: redhat-openshift-ecosystem + repo: community-operators-prod + secrets: + GRAFANABOT_GITHUB_TOKEN: ${{ secrets.GRAFANABOT_GITHUB_TOKEN }} + + operator-hub-community-release: + if: startsWith(${{ github.event.release.tag_name }}, 'operator/') + uses: ./.github/workflows/reusable-operator-hub-release.yaml + with: + org: k8s-operatorhub + repo: community-operators + secrets: + GRAFANABOT_GITHUB_TOKEN: ${{ secrets.GRAFANABOT_GITHUB_TOKEN }}