release: add 2.0 release actions

Use a different action yaml file so that we do not affect the original
1.x release actions.

Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
Peng Tao
2020-07-16 22:00:15 +08:00
parent dadab1febf
commit ceebd06b64
5 changed files with 365 additions and 13 deletions

View File

@@ -9,6 +9,8 @@ export GOPATH=${GOPATH:-${HOME}/go}
export tests_repo="${tests_repo:-github.com/kata-containers/tests}"
export tests_repo_dir="$GOPATH/src/$tests_repo"
this_script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
hub_bin="hub-bin"
clone_tests_repo() {
@@ -50,10 +52,7 @@ get_from_kata_deps() {
install_yq >&2
if [ ! -e "${versions_file}" ]; then
yaml_url="https://raw.githubusercontent.com/kata-containers/kata-containers/${branch}/versions.yaml"
echo "versions file (${versions_file}) does not exist" >&2
echo "Download from ${yaml_url}" >&2
curl --silent -o "${versions_file}" "$yaml_url"
cp "${this_script_dir}/../../../versions.yaml" ${versions_file}
fi
result=$("${GOPATH}/bin/yq" read -X "$versions_file" "$dependency")
[ "$result" = "null" ] && result=""