Skip to content

Commit

Permalink
Fix operatorhub works, add one to trigger manual (#693)
Browse files Browse the repository at this point in the history
* Fix operatorhub works, add one to trigger manual

Signed-off-by: Ruben Vargas <[email protected]>

* Update .github/workflows/reusable-operator-hub-release.yaml

Co-authored-by: Andreas Gerstmayr <[email protected]>

---------

Signed-off-by: Ruben Vargas <[email protected]>
Co-authored-by: Andreas Gerstmayr <[email protected]>
  • Loading branch information
rubenvp8510 and andreasgerstmayr authored Nov 21, 2023
1 parent 4573695 commit 354c9ae
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/olm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Publish to operatorHUB"
on:
workflow_dispatch:
inputs:
version:
description: version of the operator to publish
required: true

jobs:
operator-hub-prod-release:
uses: ./.github/workflows/reusable-operator-hub-release.yaml
with:
org: redhat-openshift-ecosystem
repo: community-operators-prod
branch: releases/${{inputs.version}}
oprepo: ${{ github.repository }}
bundletype: openshift
secrets:
TEMPOOPERATORBOT_GITHUB_TOKEN: ${{ secrets.TEMPOOPERATORBOT_GITHUB_TOKEN }}

operator-hub-community-release:
uses: ./.github/workflows/reusable-operator-hub-release.yaml
with:
org: k8s-operatorhub
repo: community-operators
branch: $ releases/${{inputs.version}}
oprepo: ${{ github.repository }}
bundletype: community
secrets:
TEMPOOPERATORBOT_GITHUB_TOKEN: ${{ secrets.TEMPOOPERATORBOT_GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
repo: community-operators-prod
branch: ${{ github.event.pull_request.head.ref }}
oprepo: ${{ github.repository }}
bundletype: openshift
secrets:
TEMPOOPERATORBOT_GITHUB_TOKEN: ${{ secrets.TEMPOOPERATORBOT_GITHUB_TOKEN }}

Expand All @@ -64,5 +65,6 @@ jobs:
repo: community-operators
branch: ${{ github.event.pull_request.head.ref }}
oprepo: ${{ github.repository }}
bundletype: community
secrets:
TEMPOOPERATORBOT_GITHUB_TOKEN: ${{ secrets.TEMPOOPERATORBOT_GITHUB_TOKEN }}
6 changes: 5 additions & 1 deletion .github/workflows/reusable-operator-hub-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
oprepo:
type: string
required: true
bundletype:
type: string
required: true
secrets:
TEMPOOPERATORBOT_GITHUB_TOKEN:
required: true
Expand Down Expand Up @@ -56,9 +59,10 @@ jobs:
- name: Update version
env:
VERSION: ${{ steps.operator-version.outputs.version }}
BUNDLE_TYPE: ${{ inputs.bundletype }}
run: |
mkdir operators/tempo-operator/${VERSION}
cp -R ./tmp/bundle/* operators/tempo-operator/${VERSION}
cp -R ./tmp/bundle/${BUNDLE_TYPE}/* operators/tempo-operator/${VERSION}
rm -rf ./tmp
- name: Use CLA approved github bot
Expand Down

0 comments on commit 354c9ae

Please sign in to comment.