Files
kata-containers/tools/packaging/release/README.md
Greg Kurz e331102ba3 release: Migrate update-repository-version.sh to GitHub CLI
The hub tool is deprecated. Convert this script to use the
official GitHub CLI gh instead of hub.

A couple of adjustments had to be made :
- the notes.md temporary file is moved to ${tmp_dir} in order to silent gh,
  otherwise it complains about an untracked file,
- title of a PR no longer goes to the notes.md file since gh requires the
  title to be passed with a dedicated --title option.

Fixes #8303

Signed-off-by: Greg Kurz <groug@kaod.org>
2023-10-31 15:10:50 +01:00

1.3 KiB

Release information

Introduction

This directory contains information of the process and tools used for creating Kata Containers releases.

Create a Kata Containers release

See the release documentation.

Release tools

update-repository-version.sh

This script creates a GitHub pull request (a.k.a PR) to change the version in the Kata repository.

For more information on using the script, run the following:

$ ./update-repository-version.sh -h

Update Kata projects to a new version

To update project version for Kata Containers, use the following:

# Set to the required version
$ new_version="a.b.c"
$ make bump-kata-version NEW_VERSION="${new_version}"

The makefile target bump-kata-version creates a GitHub pull request in the kata-containers repository. The pull request is tested by the Kata CI to ensure the entire project is working prior to the release. Next, the PR is approved and merged by Kata Containers members.

tag_repos.sh

After Kata Containers repository is updated with a new version, it needs to be tagged.

The tag_repos.sh script is used to create tags for the Kata Containers repository. The script creates an annotated tag for the new release version for the following repositories:

  • kata-containers