mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-30 17:22:33 +00:00
Merge pull request #175 from kata-containers/release-notes-fixup
Release notes fixup
This commit is contained in:
commit
f4de4838f2
@ -20,4 +20,4 @@ override_dh_auto_build:
|
|||||||
|
|
||||||
override_dh_auto_install:
|
override_dh_auto_install:
|
||||||
mkdir debian/kata-proxy
|
mkdir debian/kata-proxy
|
||||||
make install LIBEXECDIR=$(shell pwd)/debian/kata-proxy/usr/libexec COMMIT=@HASH@
|
make install DESTDIR=$(shell pwd)/debian/kata-proxy COMMIT=@HASH@
|
||||||
|
@ -69,7 +69,7 @@ echo "Clean build root"
|
|||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install LIBEXECDIR=%{buildroot}%{LIBEXECDIR} COMMIT=@HASH@
|
make install DESTDIR=%{buildroot} COMMIT=@HASH@
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
@ -41,6 +41,13 @@ EOT
|
|||||||
exit "${return_code}"
|
exit "${return_code}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
repos=(
|
||||||
|
"agent"
|
||||||
|
"proxy"
|
||||||
|
"runtime"
|
||||||
|
"shim"
|
||||||
|
)
|
||||||
|
|
||||||
get_release_info() {
|
get_release_info() {
|
||||||
|
|
||||||
docker_version=$(get_from_kata_deps "externals.docker.version" "${new_release}")
|
docker_version=$(get_from_kata_deps "externals.docker.version" "${new_release}")
|
||||||
@ -60,20 +67,13 @@ get_release_info() {
|
|||||||
kata_kernel_config_version="${new_release}-kernel-config"
|
kata_kernel_config_version="${new_release}-kernel-config"
|
||||||
kata_kernel_config_version="${new_release}-kernel-config"
|
kata_kernel_config_version="${new_release}-kernel-config"
|
||||||
|
|
||||||
runtime_version=$(cat "./VERSION")
|
runtime_version=${new_release}
|
||||||
}
|
}
|
||||||
|
|
||||||
changes() {
|
changes() {
|
||||||
echo "## Changes"
|
|
||||||
echo "**FIXME - massage this section by hand to produce a summary please**"
|
echo "**FIXME - massage this section by hand to produce a summary please**"
|
||||||
git log --merges "${previous_release}".."${new_release}" | awk '/Merge pull/{getline; getline;print }' |
|
|
||||||
while read -r pr; do
|
|
||||||
echo "- ${pr}"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo ""
|
echo "### Shortlog"
|
||||||
|
|
||||||
echo "## Shortlog"
|
|
||||||
for cr in $(git log --merges "${previous_release}".."${new_release}" | grep 'Merge:' | awk '{print $2".."$3}'); do
|
for cr in $(git log --merges "${previous_release}".."${new_release}" | grep 'Merge:' | awk '{print $2".."$3}'); do
|
||||||
git log --oneline "$cr"
|
git log --oneline "$cr"
|
||||||
done
|
done
|
||||||
@ -83,15 +83,30 @@ print_release_notes() {
|
|||||||
cat <<EOT
|
cat <<EOT
|
||||||
# Release ${runtime_version}
|
# Release ${runtime_version}
|
||||||
|
|
||||||
|
EOT
|
||||||
|
|
||||||
|
for repo in "${repos[@]}"; do
|
||||||
|
git clone -q "https://github.com/${project}/${repo}.git" "${tmp_dir}/${repo}"
|
||||||
|
pushd "${tmp_dir}/${repo}" >>/dev/null
|
||||||
|
|
||||||
|
cat <<EOT
|
||||||
|
## ${repo} Changes
|
||||||
$(changes)
|
$(changes)
|
||||||
|
|
||||||
|
EOT
|
||||||
|
popd >>/dev/null
|
||||||
|
rm -rf "${tmp_dir}/${repo}"
|
||||||
|
done
|
||||||
|
|
||||||
|
cat <<EOT
|
||||||
|
|
||||||
## Compatibility with Docker
|
## Compatibility with Docker
|
||||||
Kata Containers ${runtime_version} is compatible with Docker ${docker_version}
|
Kata Containers ${runtime_version} is compatible with Docker ${docker_version}
|
||||||
|
|
||||||
## Compatibility with CRI-O
|
## Compatibility with CRI-O
|
||||||
Kata Containers ${runtime_version} is compatible with CRI-O ${crio_version}
|
Kata Containers ${runtime_version} is compatible with CRI-O ${crio_version}
|
||||||
|
|
||||||
## Compatibility with cri-contaienrd
|
## Compatibility with cri-containerd
|
||||||
Kata Containers ${runtime_version} is compatible with cri-contaienrd ${cri_containerd_version}
|
Kata Containers ${runtime_version} is compatible with cri-contaienrd ${cri_containerd_version}
|
||||||
|
|
||||||
## OCI Runtime Specification
|
## OCI Runtime Specification
|
||||||
@ -133,8 +148,6 @@ EOT
|
|||||||
main() {
|
main() {
|
||||||
previous_release=${1:-}
|
previous_release=${1:-}
|
||||||
new_release=${2:-}
|
new_release=${2:-}
|
||||||
git clone -q "https://github.com/${project}/runtime.git" "${tmp_dir}/runtime"
|
|
||||||
pushd "${tmp_dir}/runtime" >>/dev/null
|
|
||||||
if [ -z "${previous_release}" ]; then
|
if [ -z "${previous_release}" ]; then
|
||||||
echo "previous-release not provided"
|
echo "previous-release not provided"
|
||||||
usage 1
|
usage 1
|
||||||
@ -145,7 +158,6 @@ main() {
|
|||||||
fi
|
fi
|
||||||
get_release_info
|
get_release_info
|
||||||
print_release_notes
|
print_release_notes
|
||||||
popd >>/dev/null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main "$@"
|
main "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user