- only leave fedora enabled - test each package one at a time to ensure they install correctly
18 lines
407 B
Bash
Executable File
18 lines
407 B
Bash
Executable File
#!/usr/bin/env zsh
|
|
|
|
[[ -f ./lib.sh ]] && source ./lib.sh || exit 1
|
|
|
|
for os in ${OSBUILDS[@]}
|
|
do
|
|
if ! podman container exists ${IMAGE}:${os}
|
|
then
|
|
podman run --rm -it -d --platform linux/amd64 --name ${IMAGE}:${os} -p 2222:22 packagetest
|
|
fi
|
|
ansible-playbook test_not_local.yml -i inventory.yml
|
|
if [ $? -eq 0 ]
|
|
then
|
|
podman stop ${IMAGE}:${os}
|
|
ssh-keygen -R "[127.0.0.1]:2222"
|
|
fi
|
|
done
|