Обновить .gitea/workflows/testscript
All checks were successful
Full building alt images / build-process (push) Successful in 3m14s
Full building alt images / test-process (push) Successful in 2m7s

This commit is contained in:
Надежда Федорова 2024-04-18 13:40:43 +03:00
parent 56965e0770
commit b2405d1e94

View File

@ -24,27 +24,25 @@ do
then imgpath="$2-$1/$IM:latest"
fi
command="echo empty_command"
if [[ $test != '' ]]; then
echo "podman run --rm --entrypoint=\"/bin/sh\" $3/$4/$imgpath -c \"$test\""
podman run --rm --entrypoint="/bin/sh" $3/$4/$imgpath -c "$test" 2>$IM.log || haserr=true
command="podman run --rm --entrypoint=\"/bin/sh\" $3/$imgpath -c \"$test\""
else
if [[ $IM = 'distroless-true' ]]; then
echo "podman run --rm $3/$4/$imgpath \"true\""
podman run --rm $URL/$REPO/$imgpath "true" 2>$IM.log || haserr=true
command="podman run --rm $3/$4/$imgpath \"true\""
fi
if [[ $IM = 'distroless-gotop' ]]; then
echo "podman run --rm $3/$4/$imgpath \"--version\""
podman run --rm $3/$4/$imgpath "--version" 2>$IM.log || haserr=true
command="podman run --rm $3/$4/$imgpath \"--version\""
fi
if [[ $IM = 'flannel-cni-plugin' ]]; then
echo "podman run --rm $3/$4/$imgpath \"/flannel\""
podman run --rm $URL/$REPO/$imgpath "/flannel" 2>$IM.log || haserr=true
command="podman run --rm $3/$4/$imgpath \"/flannel\""
fi
if [[ $IM = 'pause' ]]; then
echo "podman run --rm $3/$4/$imgpath \"/pause\" \"-v\""
podman run --rm $3/$4/$imgpath "/pause" "-v" 2>$IM.log || haserr=true
command="podman run --rm $3/$4/$imgpath \"/pause\" \"-v\""
fi
fi
fi
echo $command
$command 2>$IM.log || haserr=true
echo "podman rmi --all"
podman rmi --all