Files
ansible-play-baseos/testing/env-test.sh
Chris Hammer 60b891aae4
Some checks failed
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-centos) (push) Successful in 1m53s
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-debian) (push) Failing after 41s
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-fedora) (push) Failing after 45s
Cleanup; CI fixes
2025-08-21 02:11:31 -04:00

17 lines
634 B
Bash
Executable File

#!/bin/bash
echo "Which environment to test? (centos, fedora, debian)"
read test_environment
CNAME="testing-${test_environment}"
IMG_TAG="release"
podman pull gitea.thezengarden.net/podman/ansible-dev/${test_environment}:${IMG_TAG}
podman run -ti --rm --name ${CNAME} --hostname ${CNAME} \
--cap-add SYS_ADMIN --uts=private \
-v /home/chris/Development/Ansible/Plays/baseos:/opt/ansible/baseos \
-v /home/chris/Development/Ansible/Collections/jchristianh/baseos:/opt/ansible/baseos/collections/ansible_collections/jchristianh/baseos \
gitea.thezengarden.net/podman/ansible-dev/${test_environment}:${IMG_TAG} \
/bin/bash