Обновить .gitea/workflows/testscript
This commit is contained in:
parent
56965e0770
commit
b2405d1e94
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user