mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-26 07:22:20 +00:00
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:
commit
a93ff57c7d
17
.github/workflows/release.yaml
vendored
17
.github/workflows/release.yaml
vendored
@ -175,6 +175,23 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
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:
|
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 ]
|
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
|
runs-on: ubuntu-22.04
|
||||||
|
@ -205,6 +205,16 @@ function _upload_libseccomp_tarball()
|
|||||||
gh release upload "${RELEASE_VERSION}" "${asc}"
|
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()
|
function main()
|
||||||
{
|
{
|
||||||
action="${1:-}"
|
action="${1:-}"
|
||||||
@ -217,6 +227,7 @@ function main()
|
|||||||
upload-versions-yaml-file) _upload_versions_yaml_file ;;
|
upload-versions-yaml-file) _upload_versions_yaml_file ;;
|
||||||
upload-vendored-code-tarball) _upload_vendored_code_tarball ;;
|
upload-vendored-code-tarball) _upload_vendored_code_tarball ;;
|
||||||
upload-libseccomp-tarball) _upload_libseccomp_tarball ;;
|
upload-libseccomp-tarball) _upload_libseccomp_tarball ;;
|
||||||
|
upload-helm-chart-tarball) _upload_helm_chart_tarball ;;
|
||||||
publish-release) _publish_release ;;
|
publish-release) _publish_release ;;
|
||||||
*) >&2 _die "Invalid argument" ;;
|
*) >&2 _die "Invalid argument" ;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user