To test the container before publication, run these steps.
container_hash=$(podman build . -q).- Go to a role-directory, like
ansible-role-example. namespace=$(grep -oP '(?<=namespace: )\w+' meta/main.yml)- Try lint:
podman run --privileged --volume ${PWD}:/github/workspace/${namespace}/${PWD##*/}:z --tty --interactive --env command="lint" --env GITHUB_REPOSITORY="${namespace}/${PWD##*/}" --env ANSIBLE_ROLES_PATH="../" ${container_hash} - Try role:
podman run --privileged --volume ${PWD}:/github/workspace/${namespace}/${PWD##*/}:z --tty --interactive --env GITHUB_REPOSITORY="${namespace}/${PWD##*/}" --env ANSIBLE_ROLES_PATH="../" ${container_hash}