Merge pull request #10171 from fidencio/topic/ci-treat-nydus-snapshotter-as-a-dep

ci: nydus: Treat the snapshotter as a dependency
This commit is contained in:
Fabiano Fidêncio 2024-08-16 16:39:48 +02:00 committed by GitHub
commit 6c58ae5b95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -415,6 +415,11 @@ function cleanup() {
}
function deploy_snapshotter() {
if [[ "${KATA_HYPERVISOR}" == "qemu-tdx" ]]; then
echo "[Skip] ${SNAPSHOTTER} is pre-installed in the TEE machine"
return
fi
echo "::group::Deploying ${SNAPSHOTTER}"
case ${SNAPSHOTTER} in
nydus) deploy_nydus_snapshotter ;;
@ -424,6 +429,11 @@ function deploy_snapshotter() {
}
function cleanup_snapshotter() {
if [[ "${KATA_HYPERVISOR}" == "qemu-tdx" ]]; then
echo "[Skip] ${SNAPSHOTTER} is pre-installed in the TEE machine"
return
fi
echo "::group::Cleanuping ${SNAPSHOTTER}"
case ${SNAPSHOTTER} in
nydus) cleanup_nydus_snapshotter ;;