release: helm: Add the chart as part of the release

So users can simply download the chart and use it accordingly without
the need to download the full repo.

Signed-off-by: Fabiano Fidêncio <fabiano@fidencio.org>
This commit is contained in:
Fabiano Fidêncio
2024-12-05 21:31:35 +01:00
parent 652662ae09
commit 300a827d03
2 changed files with 28 additions and 0 deletions

View File

@@ -205,6 +205,16 @@ function _upload_libseccomp_tarball()
gh release upload "${RELEASE_VERSION}" "${asc}"
}
function _upload_helm_chart_tarball()
{
_check_required_env_var "GH_TOKEN"
RELEASE_VERSION="$(_release_version)"
helm package ${repo_root_dir}/tools/packaging/kata-deploy/helm-chart/kata-deploy
gh release upload "${RELEASE_VERSION}" "kata-deploy-${RELEASE_VERSION}.tgz"
}
function main()
{
action="${1:-}"
@@ -217,6 +227,7 @@ function main()
upload-versions-yaml-file) _upload_versions_yaml_file ;;
upload-vendored-code-tarball) _upload_vendored_code_tarball ;;
upload-libseccomp-tarball) _upload_libseccomp_tarball ;;
upload-helm-chart-tarball) _upload_helm_chart_tarball ;;
publish-release) _publish_release ;;
*) >&2 _die "Invalid argument" ;;
esac