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
|
### Update Kata projects to a new version
|
||||||
|
|
||||||
Kata Containers is divided into multiple projects. With each release, all
|
To update project version for Kata Containers, use the following:
|
||||||
project versions are updated to keep the version consistent.
|
|
||||||
|
|
||||||
To update all versions for all projects, use the following:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ make bump-kata-version NEW_VERSION=<new-version>
|
$ make bump-kata-version NEW_VERSION=<new-version>
|
||||||
```
|
```
|
||||||
|
|
||||||
The makefile target `bump-kata-version` creates a GitHub pull request in the
|
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
|
entire project is working prior to the release. Next, the PR is approved and
|
||||||
merged by Kata Containers members.
|
merged by Kata Containers members.
|
||||||
|
|
||||||
### `tag_repos.sh`
|
### `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.
|
tagged.
|
||||||
|
|
||||||
The `tag_repos.sh` script is used to create tags for the Kata Containers
|
The `tag_repos.sh` script is used to create tags for the Kata Containers repository.
|
||||||
repositories. This script ensures that all the repositories are in the same
|
|
||||||
version (by checking the `VERSION` file).
|
|
||||||
|
|
||||||
The script creates an **annotated tag** for the new release version for the
|
The script creates an **annotated tag** for the new release version for the
|
||||||
following repositories:
|
following repositories:
|
||||||
|
|
||||||
- agent
|
- kata-containers
|
||||||
- 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.
|
|
||||||
|
@ -68,15 +68,6 @@ info() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
repos=(
|
repos=(
|
||||||
"agent"
|
|
||||||
"documentation"
|
|
||||||
"ksm-throttler"
|
|
||||||
"osbuilder"
|
|
||||||
"packaging"
|
|
||||||
"proxy"
|
|
||||||
"runtime"
|
|
||||||
"shim"
|
|
||||||
"tests"
|
|
||||||
"kata-containers"
|
"kata-containers"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -208,7 +199,7 @@ main () {
|
|||||||
|
|
||||||
subcmd=${1:-""}
|
subcmd=${1:-""}
|
||||||
shift || true
|
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
|
[ -z "${subcmd}" ] && usage && exit 0
|
||||||
|
|
||||||
|
@ -16,10 +16,10 @@ echo "Check tag_repos.sh -h option"
|
|||||||
./release/tag_repos.sh -h | grep Usage
|
./release/tag_repos.sh -h | grep Usage
|
||||||
|
|
||||||
echo "Check tag_repos.sh status"
|
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"
|
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"
|
echo "Check tag_repos.sh pre-release with invalid information"
|
||||||
./release/tag_repos.sh pre-release 1000000 | grep "ERROR" || true
|
./release/tag_repos.sh pre-release 1000000 | grep "ERROR" || true
|
||||||
|
@ -164,16 +164,7 @@ EOT
|
|||||||
}
|
}
|
||||||
|
|
||||||
repos=(
|
repos=(
|
||||||
"agent"
|
|
||||||
"documentation"
|
|
||||||
"kata-containers"
|
"kata-containers"
|
||||||
"ksm-throttler"
|
|
||||||
"osbuilder"
|
|
||||||
"packaging"
|
|
||||||
"proxy"
|
|
||||||
"runtime"
|
|
||||||
"shim"
|
|
||||||
"tests"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
main(){
|
main(){
|
||||||
|
Loading…
Reference in New Issue
Block a user