Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(operator): adds reusable workflow for opening PRs to hub repos #12149

Merged

Conversation

JoaoBraveCoding
Copy link
Collaborator

@JoaoBraveCoding JoaoBraveCoding commented Mar 6, 2024

What this PR does / why we need it:

This PR will automate the process of opening a PR to the Hub repos, like k8s-operatorhub/community-operators#3452

Once everything is set up we will be able to add to our release workflow the following:

  operator-hub-prod-release:
    needs: release
    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:
    needs: release
    uses: ./.github/workflows/reusable-operator-hub-release.yaml
    with:
      org: k8s-operatorhub
      repo: community-operators
    secrets:
      GRAFANABOT_GITHUB_TOKEN: ${{ secrets.GRAFANABOT_GITHUB_TOKEN }}

4e49718 Adds a new workflow that would trigger automatic releases if there was a release with the tag operator/ to be seen what will be the best way to trigger

This work was inspired by how opentelemetry-operator releases open-telemetry/opentelemetry-operator#1573

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:
Before merging this we need approval from Grafana that we will be able to use grafanabot to the PR opening

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • CHANGELOG.md updated
    • If the change is worth mentioning in the release notes, add add-to-release-notes label
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/setup/upgrade/_index.md
  • For Helm chart changes bump the Helm chart version in production/helm/loki/Chart.yaml and update production/helm/loki/CHANGELOG.md and production/helm/loki/README.md. Example PR
  • If the change is deprecating or removing a configuration option, update the deprecated-config.yaml and deleted-config.yaml files respectively in the tools/deprecated-config-checker directory. Example PR

@JoaoBraveCoding JoaoBraveCoding marked this pull request as ready for review March 7, 2024 16:58
Copy link
Collaborator

@trevorwhitney trevorwhitney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to fix the secret but I think this looks good!

.github/workflows/operator-publish-operator-hub.yml Outdated Show resolved Hide resolved
@trevorwhitney trevorwhitney merged commit 704ac62 into grafana:main Mar 20, 2024
19 checks passed
edsoncelio pushed a commit to edsoncelio/loki that referenced this pull request Mar 22, 2024
rhnasc pushed a commit to inloco/loki that referenced this pull request Apr 12, 2024
@JoaoBraveCoding JoaoBraveCoding deleted the operator-automate-hub-release branch July 9, 2024 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants