From a2534e7bc8acba1de11b649479ebf75743c481c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Fri, 28 Nov 2025 18:03:42 +0100 Subject: [PATCH] kata-tools: Release as its own tarball MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We're only releasing those for amd64 as that's the only architecture we've been building the packages for. Signed-off-by: Fabiano FidĂȘncio --- .github/workflows/release.yaml | 17 +++++++++++++++++ tools/packaging/release/release.sh | 15 +++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1277eefe72..80187246c2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -181,6 +181,23 @@ jobs: GH_TOKEN: ${{ github.token }} ARCHITECTURE: ppc64le + - name: Set KATA_TOOLS_STATIC_TARBALL env var + run: | + tarball=$(pwd)/kata-tools-static.tar.zst + echo "KATA_TOOLS_STATIC_TARBALL=${tarball}" >> "$GITHUB_ENV" + + - name: Download amd64 tools artifacts + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 + with: + name: kata-tools-static-tarball-amd64 + + - name: Upload amd64 static tarball tools to GitHub + run: | + ./tools/packaging/release/release.sh upload-kata-tools-static-tarball + env: + GH_TOKEN: ${{ github.token }} + ARCHITECTURE: amd64 + upload-versions-yaml: name: upload-versions-yaml needs: release diff --git a/tools/packaging/release/release.sh b/tools/packaging/release/release.sh index 1901ab91d6..953b490983 100755 --- a/tools/packaging/release/release.sh +++ b/tools/packaging/release/release.sh @@ -170,6 +170,20 @@ function _upload_kata_static_tarball() gh release upload "${RELEASE_VERSION}" "${new_tarball_name}" } +function _upload_kata_tools_static_tarball() +{ + _check_required_env_var "GH_TOKEN" + _check_required_env_var "ARCHITECTURE" + _check_required_env_var "KATA_TOOLS_STATIC_TARBALL" + + RELEASE_VERSION="$(_release_version)" + + new_tarball_name="kata-tools-static-${RELEASE_VERSION}-${ARCHITECTURE}.tar.zst" + mv ${KATA_TOOLS_STATIC_TARBALL} "${new_tarball_name}" + echo "uploading asset '${new_tarball_name}' (${ARCHITECTURE}) for tag: ${RELEASE_VERSION}" + gh release upload "${RELEASE_VERSION}" "${new_tarball_name}" +} + function _upload_versions_yaml_file() { RELEASE_VERSION="$(_release_version)" @@ -230,6 +244,7 @@ function main() release-version) _release_version;; create-new-release) _create_new_release ;; upload-kata-static-tarball) _upload_kata_static_tarball ;; + upload-kata-tools-static-tarball) _upload_kata_tools_static_tarball ;; upload-versions-yaml-file) _upload_versions_yaml_file ;; upload-vendored-code-tarball) _upload_vendored_code_tarball ;; upload-libseccomp-tarball) _upload_libseccomp_tarball ;;