-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e58b8a
commit 38601c2
Showing
55 changed files
with
949 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Publish OperatorHub release | ||
|
||
on: | ||
workflow_run: | ||
workflows: | ||
- Release | ||
types: | ||
- completed | ||
|
||
jobs: | ||
update: | ||
name: Publish new OperatorHub release | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'success' && ! contains(github.event.workflow_run.head_branch, '-') }} | ||
strategy: | ||
matrix: | ||
repo: | ||
- fork: VictoriaMetrics/operatorhub-operators | ||
upstream: k8s-operatorhub/community-operators | ||
- fork: VictoriaMetrics/openshift-community-operators-prod | ||
upstream: redhat-openshift-ecosystem/community-operators-prod | ||
- fork: VictoriaMetrics/openshift-certified-operators | ||
upstream: redhat-openshift-ecosystem/certified-operators | ||
steps: | ||
- name: Check out OperatorHub operators repo fork | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ matrix.repo.upstream }} | ||
ref: main | ||
token: ${{ secrets.VM_BOT_GH_TOKEN }} | ||
path: __k8s-operatorhub-repo | ||
|
||
- name: Import GPG key | ||
uses: crazy-max/ghaction-import-gpg@v6 | ||
with: | ||
gpg_private_key: ${{ secrets.VM_BOT_GPG_PRIVATE_KEY }} | ||
passphrase: ${{ secrets.VM_BOT_PASSPHRASE }} | ||
git_user_signingkey: true | ||
git_commit_gpgsign: true | ||
workdir: __k8s-operatorhub-repo | ||
|
||
- uses: dawidd6/action-download-artifact@v6 | ||
with: | ||
name: olm | ||
workflow: main.yaml | ||
github_token: ${{ secrets.VM_BOT_GH_TOKEN }} | ||
run_id: ${{ github.event.workflow_run.id }} | ||
path: bundle | ||
|
||
- name: Add operatorhub bundle | ||
id: update | ||
run: | | ||
mv bundle/* __k8s-operatorhub-repo/operators/victoriametrics-operator/ | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
push-to-fork: VictoriaMetrics/operatorhub-operators | ||
add-paths: operators/victoriametrics-operator | ||
signoff: true | ||
author: Github Actions <[email protected]> | ||
path: __k8s-operatorhub-repo | ||
push-to-fork: ${{ matrix.repo.fork }} | ||
branch: vm-operator-release-{{ github.event.release.tag_name }} | ||
token: ${{ secrets.VM_BOT_GH_TOKEN }} | ||
delete-branch: true | ||
title: "victoriametrics-operator: update operator ${{ github.event.release.tag_name }}" | ||
body: | | ||
Added OLM package for [VictoriaMetrics operator ${{ github.event.release.tag_name }}"](https://github.com/VictoriaMetrics/operator/releases/tag/${{ github.event.release.tag_name }}) | ||
> Auto-generated by `Github Actions Bot` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.