Merge pull request #10627 from kata-containers/topic/release-helm-charm-tarball

release: helm: Add the chart as part of the release
This commit is contained in:
Fabiano Fidêncio 2024-12-06 11:22:43 +01:00 committed by GitHub
commit a93ff57c7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 28 additions and 0 deletions

View File

@ -175,6 +175,23 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
upload-helm-chart-tarball:
needs: release
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install helm
uses: azure/setup-helm@v4.2.0
id: install
- name: Generate and upload helm chart tarball
run: |
./tools/packaging/release/release.sh upload-helm-chart-tarball
env:
GH_TOKEN: ${{ github.token }}
publish-release:
needs: [ build-and-push-assets-amd64, build-and-push-assets-arm64, build-and-push-assets-s390x, build-and-push-assets-ppc64le, publish-multi-arch-images, upload-multi-arch-static-tarball, upload-versions-yaml, upload-cargo-vendored-tarball, upload-libseccomp-tarball ]
runs-on: ubuntu-22.04

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