Skip to content

Commit

Permalink
Merge branch 'main' into fix_publish_images
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvp8510 authored Nov 21, 2023
2 parents 063fa5f + 2f6c91d commit a6ede9f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
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 }}
8 changes: 6 additions & 2 deletions .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,15 +59,16 @@ 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
run: |
git config user.name tempobot
git config user.email 107717825[email protected]
git config user.email 150731540[email protected]
- name: Create pull request against ${{ inputs.org }}/${{ inputs.repo }}
env:
Expand Down

0 comments on commit a6ede9f

Please sign in to comment.