mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 12:14:48 +00:00
packaging: tag releases on kata-containers repo
As we do not need to tag other repositories any more. Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
parent
f56f68bf2f
commit
1bd5825955
@ -31,37 +31,24 @@ $ ./update-repository-version.sh -h
|
||||
|
||||
### Update Kata projects to a new version
|
||||
|
||||
Kata Containers is divided into multiple projects. With each release, all
|
||||
project versions are updated to keep the version consistent.
|
||||
|
||||
To update all versions for all projects, use the following:
|
||||
To update project version for Kata Containers, use the following:
|
||||
|
||||
```bash
|
||||
$ make bump-kata-version NEW_VERSION=<new-version>
|
||||
```
|
||||
|
||||
The makefile target `bump-kata-version` creates a GitHub pull request in the
|
||||
Kata repositories. These pull requests are tested by the Kata CI to ensure 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 all the Kata repositories are updated with a new version, they need to be
|
||||
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
|
||||
repositories. This script ensures that all the repositories are in the same
|
||||
version (by checking the `VERSION` file).
|
||||
|
||||
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:
|
||||
|
||||
- agent
|
||||
- proxy
|
||||
- runtime
|
||||
- shim
|
||||
- throttler
|
||||
|
||||
The script also tags the tests and osbuilder repositories to make it clear which
|
||||
versions of these supporting repositories are used for the release.
|
||||
- kata-containers
|
||||
|
@ -68,15 +68,6 @@ info() {
|
||||
}
|
||||
|
||||
repos=(
|
||||
"agent"
|
||||
"documentation"
|
||||
"ksm-throttler"
|
||||
"osbuilder"
|
||||
"packaging"
|
||||
"proxy"
|
||||
"runtime"
|
||||
"shim"
|
||||
"tests"
|
||||
"kata-containers"
|
||||
)
|
||||
|
||||
@ -208,7 +199,7 @@ main () {
|
||||
|
||||
subcmd=${1:-""}
|
||||
shift || true
|
||||
kata_version=$(curl -Ls "${URL_RAW_FILE}/runtime/${branch}/VERSION" | grep -v -P "^#")
|
||||
kata_version=$(curl -Ls "${URL_RAW_FILE}/kata-containers/${branch}/VERSION" | grep -v -P "^#")
|
||||
|
||||
[ -z "${subcmd}" ] && usage && exit 0
|
||||
|
||||
|
@ -16,10 +16,10 @@ echo "Check tag_repos.sh -h option"
|
||||
./release/tag_repos.sh -h | grep Usage
|
||||
|
||||
echo "Check tag_repos.sh status"
|
||||
./release/tag_repos.sh status | grep runtime
|
||||
./release/tag_repos.sh status | grep kata-containers
|
||||
|
||||
echo "Check tag_repos.sh pre-release"
|
||||
./release/tag_repos.sh pre-release $(curl -sL https://raw.githubusercontent.com/kata-containers/runtime/master/VERSION) | grep "Not checking runtime"
|
||||
./release/tag_repos.sh pre-release $(curl -sL https://raw.githubusercontent.com/kata-containers/kata-containers/2.0-dev/VERSION) | grep "Not checking runtime"
|
||||
|
||||
echo "Check tag_repos.sh pre-release with invalid information"
|
||||
./release/tag_repos.sh pre-release 1000000 | grep "ERROR" || true
|
||||
|
@ -164,16 +164,7 @@ EOT
|
||||
}
|
||||
|
||||
repos=(
|
||||
"agent"
|
||||
"documentation"
|
||||
"kata-containers"
|
||||
"ksm-throttler"
|
||||
"osbuilder"
|
||||
"packaging"
|
||||
"proxy"
|
||||
"runtime"
|
||||
"shim"
|
||||
"tests"
|
||||
)
|
||||
|
||||
main(){
|
||||
|
Loading…
Reference in New Issue
Block a user