github.com/misfo/deis@v1.0.1-0.20141111224634-e0eee0392b8a/docs/contributing/releases.rst (about) 1 :title: Releases 2 :description: The Deis software release process. 3 4 .. _releases: 5 6 Release Checklist 7 ================= 8 9 These instructions are to assist the Deis maintainers with creating a new Deis 10 product release. Please keep this document up-to-date with any changes in this process. 11 12 deis repo 13 --------- 14 - If this release was managed as a milestone in GitHub: 15 * Create the next `deis milestone`_ 16 * Move any `deis open issues`_ from the current release to the next milestone 17 * Close the current `deis milestone`_ 18 - Create a branch for the release PR: ``git checkout -b release-X.Y.Z`` 19 - Update CHANGELOG.md using the `changelog script`_ 20 * ``./contrib/util/generate-changelog.sh vU.V.W | cat - CHANGELOG.md > tmp && mv tmp CHANGELOG.md`` 21 substituting the previous release for vU.V.W. 22 * proofread the new CHANGELOG.md to ensure it was generated correctly and edit ``HEAD`` at the top 23 to vX.Y.Z (the current release) 24 - Update version strings with the ``bumpver`` tool: 25 26 .. code-block:: console 27 28 $ ./contrib/bumpver/bumpver X.Y.Z \ 29 version/version.go \ 30 README.md \ 31 client/deis.py \ 32 client/setup.py \ 33 contrib/coreos/user-data.example \ 34 controller/deis/__init__.py \ 35 deisctl/deis-version \ 36 deisctl/deisctl.go \ 37 docs/contributing/test_plan.rst \ 38 docs/installing_deis/install-deisctl.rst \ 39 docs/managing_deis/upgrading-deis.rst 40 41 - Edit deisctl/cmd/cmd.go and change the default in the RefreshUnits usage string 42 (near the bottom of the file) from ``[master]`` to ``[vX.Y.Z]``. 43 - Examine the output of ``git grep vU.V.W`` to ensure that no old version strings 44 were missed 45 - Commit and push the deis/deis release and tag 46 * ``git commit -a -m 'chore(release): update version to vX.Y.Z'`` 47 * ``git push origin release-X.Y.Z`` 48 - When the PR is approved and merged, tag it in master 49 * ``git checkout master && git pull`` 50 * ``git tag vX.Y.Z`` 51 * ``git push --tags origin vX.Y.Z`` 52 - Publish CLI to pypi.python.org 53 - ``cd client && python setup.py sdist upload`` 54 - use testpypi.python.org first to ensure there aren't any problems 55 - Continuous delivery jobs at ci.deis.io will update the deis CLI. Double-check that the 56 current binary installers are publicly downloadable from the opdemand S3 bucket. 57 58 deis.io repo 59 ------------ 60 - Update deis.io installer scripts to point to new versions by default 61 * update https://github.com/deis/deis.io/blob/gh-pages/deis-cli/install.sh 62 * update https://github.com/deis/deis.io/blob/gh-pages/deisctl/install.sh 63 64 Documentation 65 ------------- 66 - (CHANGELOG.md files were regenerated and committed above.) 67 - Docs are automatically published to http://docs.deis.io (the preferred alias 68 for deis.readthedocs.org) 69 - Log in to the http://deis.readthedocs.org admin 70 * add the current release to the list of published builds 71 * remove the oldest release from the list of published builds 72 * rebuild all published versions so their "Versions" index links 73 are updated 74 - Publish docs to pythonhosted.org/deis 75 * from the project root, run ``make -C docs clean zipfile`` 76 * the zipfile will be at **docs/docs.zip** 77 * log in to http://pypi.python.org/ and use the web form at the 78 `Deis Pypi`_ page to upload the zipfile 79 - Check documentation for deis/* projects at the `Docker Hub`_ 80 * click "Settings" for each project (deis/controller, deis/cache, etc.) 81 * paste the contents of each README.md into the "long description" field if 82 there are discrepencies 83 - For a milestone release, create release notes docs 84 * follow the format of previous `release notes`_ 85 * summarize all work done since the previous release 86 * visit all deis/* project issues to make sure we don't 87 miss any contributors for the "Community Shout-Outs" section 88 * include "what's next" and "future directions" sections 89 * add Markdown version of release notes to `deis/deis.io`_ website project 90 - For a patch release, paste the new CHANGELOG.md section as GitHub release notes 91 92 Post-Release 93 ------------ 94 - Update the #deis IRC channel topic to reference the newly released version 95 - For a milestone release, update HipChat channel topics to reference the 96 next planned version 97 - Create a branch for the post-release PR: ``git checkout -b release-X.Y.Z+git`` 98 - Update version strings to vX.Y.Z+git with the ``bumpver`` tool: 99 100 .. code-block:: console 101 102 $ ./contrib/bumpver/bumpver X.Y.Z+git \ 103 version/version.go \ 104 client/deis.py \ 105 deisctl/deis-version \ 106 deisctl/deisctl.go \ 107 controller/deis/__init__.py \ 108 README.md 109 110 - Edit deisctl/cmd/cmd.go and change the default in the RefreshUnits usage string 111 (near the bottom of the file) from ``[vX.Y.Z]`` to ``[master]``. 112 - Create a pull request for vX.Y.Z+git 113 * ``git commit -a -m 'chore(release): update version in master to vX.Y.Z+git'`` 114 - Ensure that this PR is merged before others are allowed to be merged! 115 116 117 .. _`deis milestone`: https://github.com/deis/deis/issues/milestones 118 .. _`deis open issues`: https://github.com/deis/deis/issues?state=open 119 .. _`changelog script`: https://github.com/deis/deis/blob/master/contrib/util/generate-changelog.sh 120 .. _`release notes`: https://github.com/deis/deis/releases 121 .. _`aws-eng S3 bucket`: https://s3-us-west-2.amazonaws.com/opdemand/ 122 .. _`Deis Pypi`: https://pypi.python.org/pypi/deis/ 123 .. _`Docker Hub`: https://hub.docker.com/ 124 .. _`deis/deis.io`: https://github.com/deis/deis.io