Uploaded image for project: 'Container Tools'
  1. Container Tools
  2. RUN-3456

automate monorepo releases

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • rhel-container-tools
    • RUN 277

      As part of the monorepo the go modules require a special tag format and release sequence to make it work correctly. Create a script which should handle bumping the version, creating the the commits and tagging the right ones and then bumpming the module.

       

      Below are the steps I did for the manual release which should be made as part of a script that takes the three storage, image and common versions as argument:

       

      git checkout -b release

      commit: bump storage to v1.60.0

      git push origin release
      git tag -s -m storage/v1.60.0 storage/v1.60.0 HEAD

      1. push branch
      2. make PR
      3. wait merge
        git push upstream storage/v1.60.0
      1. update storage in image/common go.mod
        go get go.podman.io/storage@v1.60.0
        commit:  go.mod: update to storage v1.60.0

      commit: bump image to v5.37.0

      git tag -s -m image/v5.37.0 image/v5.37.0 HEAD

      1. push branch
      2. make PR
      3. wait merge

      git push upstream image/v5.37.0

      1. update image in common go.mod
        go get go.podman.io/storage@v1.60.0
        commit: go.mod: update to image v5.37.0

      commit: bump common to v0.65.0

      git tag -s -m common/v0.65.0 common/v0.65.0 HEAD

      commit: bump back to dev

      1. push branch
      2. make PR
      3. wait merge

      git push upstream common/v0.65.0

              tsweeney@redhat.com Tom Sweeney
              pholzing@redhat.com Paul Holzinger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: