Uploaded image for project: 'Red Hat OpenShift Data Science'
  1. Red Hat OpenShift Data Science
  2. RHODS-8928 [Sprint Template] Sync upstream
  3. RHODS-9320

Create a new release branch when upstream release a new version

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • Model Serving
    • False
    • None
    • False
    • Testable
    • No
    • No
    • Pending
    • None

      When the upstream release a new version, we need to create a new release branch that is the same as the main branch

      This example script is full automation but I STRONGLY recommend you try this for each repo. Do not use this script for all repos.

      for TARGET_REPO_NAME in modelmesh # modelmesh-runtime-adapter rest-proxy odh-model-controller
      do 
        cd ${SYNC_HOME}/${TARGET_REPO_NAME}
        git checkout -b ${NEW_RELEASE_BRANCH_NAME} odh/${PRIOR_RELEASE_BRANCH_NAME}
        git push --set-upstream odh ${NEW_RELEASE_BRANCH_NAME}
      
        git merge -X theirs ${TODAY_DATE}_sync_main   
      
        ## Update version
        sed "s/main/${NEW_RELEASE_BRANCH_NAME}/g" -i version
        sed "s/latest/${NEW_ODH_VERSION}/g" -i version
        sed "s/${PRIOR_TARGET_TAG}/${UPSTREAM_TARGET_TAG}/g" -i version  
      
        ## Push
        git add .
        git commit -S -s -m "Update repo for ${UPSTREAM_TARGET_TAG}"
        git push --set-upstream origin ${NEW_RELEASE_BRANCH_NAME}
      done 

            Unassigned Unassigned
            rhn-support-jlee JOOHO LEE
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: