Skip to content

Commit

Permalink
chore(operator): adds automatic triggers to release the operator
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoBraveCoding committed Mar 6, 2024
1 parent 8b638ac commit 4e49718
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/operator-publish-operator-hub.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 4e49718

Please sign in to comment.