-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix_publish_images
- Loading branch information
Showing
3 changed files
with
38 additions
and
2 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
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 }} |
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 |
---|---|---|
|
@@ -15,6 +15,9 @@ on: | |
oprepo: | ||
type: string | ||
required: true | ||
bundletype: | ||
type: string | ||
required: true | ||
secrets: | ||
TEMPOOPERATORBOT_GITHUB_TOKEN: | ||
required: true | ||
|
@@ -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: | ||
|