-
Notifications
You must be signed in to change notification settings - Fork 0
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
240d313
commit e926c31
Showing
3 changed files
with
125 additions
and
0 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,50 @@ | ||
name: Onboard Release Branches | ||
|
||
on: | ||
schedule: | ||
- cron: '0 1 * * *' | ||
workflow_dispatch: | ||
inputs: | ||
component: | ||
type: string | ||
required: true | ||
|
||
jobs: | ||
onboard-release-branches: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
run: | | ||
pip install -r utils/auto-merge/requirements.txt | ||
- name: Add the release to config | ||
env: | ||
SMARTSHEET_ACCESS_TOKEN: ${{ secrets.SMARTSHEET_ACCESS_TOKEN }} | ||
BUILD_SHEET_ID: ${{ secrets.BUILD_SHEET_ID }} | ||
shell: bash | ||
id: remove_release_from_config | ||
run: | | ||
RELEASE_TO_BE_SETUP=DEFAULT | ||
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]] | ||
then | ||
RELEASE_TO_BE_SETUP=${{ github.event.inputs.release }} | ||
fi | ||
echo "RELEASE_TO_BE_SETUP=$RELEASE_TO_BE_SETUP" | ||
echo $RELEASE_TO_BE_SETUP > RELEASE_TO_BE_SETUP | ||
python utils/auto-merge/setup_release_branches.py --release $RELEASE_TO_BE_SETUP | ||
RELEASE_TO_BE_SETUP=$(cat RELEASE_TO_BE_SETUP) | ||
echo "RELEASE_TO_BE_SETUP=${RELEASE_TO_BE_SETUP}" >> $GITHUB_OUTPUT | ||
rm -rf RELEASE_TO_BE_SETUP | ||
- name: Extract branch name | ||
shell: bash | ||
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT | ||
id: extract_branch | ||
- name: Commit and push changes to main branch | ||
uses: actions-js/push@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ steps.extract_branch.outputs.branch }} | ||
message: "Adding ${{ steps.remove_release_from_config.outputs.RELEASE_TO_BE_SETUP }} to releases.yaml" | ||
repository: red-hat-data-services/rhods-devops-infra |
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,60 @@ | ||
{ | ||
"target_release": "rhods-2.5", | ||
"previous_release": "rhods-2.4", | ||
"upstream_org": "opendatahub-io", | ||
"downstream_org": "red-hat-data-services", | ||
"filter_labels": "rhods-2.5", | ||
"jira_server": "https://issues.redhat.com/", | ||
"jira_project": "RHODS", | ||
"jira_labels": "eng,groomed", | ||
"jira_issue_type": "Story", | ||
"jira_priority": "Normal", | ||
"jira_target_release": "RHODS_2.5.0_GA", | ||
"components": [ | ||
{ | ||
"component_name": "Dashboard", | ||
"cpaas_repos": ["odh-dashboard"], | ||
"non_cpaas_repos": [], | ||
"robot_tags": "Dashboard", | ||
"Test_Platform": "Jenkins", | ||
"Jenkins_Job": "" | ||
|
||
}, | ||
{ | ||
"component_name": "Data Science Pipelines", | ||
"jira_component": "Pipelines", | ||
"cpaas_repos": ["data-science-pipelines", "data-science-pipelines-operator"], | ||
"non_cpaas_repos": [""] | ||
}, | ||
{ | ||
"component_name": "RHODS Operator", | ||
"jira_component": "Install Upgrade Uninstall", | ||
"cpaas_repos": ["opendatahub-operator"], | ||
"non_cpaas_repos": [] | ||
}, | ||
{ | ||
"component_name": "Model Serving", | ||
"jira_component": "Model Serving", | ||
"cpaas_repos": ["trustyai-explainability/trustyai-explainability", "trustyai-explainability/trustyai-service-operator", "kserve", "modelmesh-serving", "rest-proxy", "odh-model-controller", "modelmesh", "modelmesh-runtime-adapter"], | ||
"non_cpaas_repos": ["caikit-tgis-serving","caikit-tgis-backend", "caikit", "caikit-nlp", "text-generation-inference", "openvinotoolkit/model_server", "caikit-nlp-client"] | ||
}, | ||
{ | ||
"component_name": "Workbenches", | ||
"jira_component": "Workbenches", | ||
"cpaas_repos": ["notebooks", "kubeflow"], | ||
"non_cpaas_repos": ["s2i-minimal-notebook", "s2i-minimal-notebook-anaconda"] | ||
}, | ||
{ | ||
"component_name": "Distributed Workloads", | ||
"jira_component": "Distributed Workloads", | ||
"cpaas_repos": ["kuberay", "codeflare-operator"], | ||
"non_cpaas_repos": ["distributed-workloads "] | ||
}, | ||
{ | ||
"component_name": "Documentation", | ||
"jira_component": "Documentation", | ||
"cpaas_repos": [], | ||
"non_cpaas_repos": ["opendatahub-documentation"] | ||
} | ||
] | ||
} |
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,15 @@ | ||
{ | ||
"auto-merges": [ | ||
{ | ||
"name": "odh-dashboard", | ||
"src": { | ||
"repo": "https://github.com/opendatahub-io/odh-dashboard", | ||
"branch": "main" | ||
}, | ||
"dest": { | ||
"repo": "https://github.com/red-hat-data-services/odh-dashboard", | ||
"branch": "main" | ||
} | ||
} | ||
] | ||
} |