github.com/theblckswan/cni@v0.8.1/RELEASING.md (about)

     1  # Release process
     2  
     3  ## Resulting artifacts
     4  
     5  Creating a new release produces the following artifacts:
     6  
     7  - Binaries (stored in the `release-<TAG>` directory) :
     8    - `cni-<PLATFORM>-<VERSION>.tgz` binaries
     9    - `cni-<VERSION>.tgz` binary (copy of amd64 platform binary)
    10    - `sha1`, `sha256` and `sha512` files for the above files.
    11  
    12  ## Preparing for a release
    13  
    14  1. Releases are performed by maintainers and should usually be discussed and planned at a maintainer meeting.
    15  
    16     - Choose the version number. It should be prefixed with `v`, e.g. `v1.2.3`
    17     - Take a quick scan through the PRs and issues to make sure there isn't anything crucial that _must_ be in the next release.
    18     - Create a draft of the release note
    19     - Discuss the level of testing that's needed and create a test plan if sensible
    20     - Check what version of `go` is used in the build container, updating it if there's a new stable release.
    21  
    22  ## Creating the release artifacts
    23  
    24  1. Make sure you are on the master branch and don't have any local uncommitted changes.
    25  1. Create a signed tag for the release `git tag -s $VERSION` (Ensure that GPG keys are created and added to GitHub)
    26  1. Run the release script from the root of the repository
    27  
    28     - `scripts/release.sh`
    29     - The script requires Docker and ensures that a consistent environment is used.
    30     - The artifacts will now be present in the `release-<TAG>` directory.
    31  
    32  1. Test these binaries according to the test plan.
    33  
    34  ## Publishing the release
    35  
    36  1. Push the tag to git `git push origin <TAG>`
    37  1. Create a release on Github, using the tag which was just pushed.
    38  1. Attach all the artifacts from the release directory.
    39  1. Add the release note to the release.
    40  1. Announce the release on at least the CNI mailing, IRC and Slack.