Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ansible-builder installation file logic #106

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/validate_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
sudo update-alternatives --install /usr/bin/python python $(which python3) 1
pip install --upgrade pip
pip install ansible-core==2.12 ansible-builder bindep pycodestyle voluptuous pylint pyyaml ansible-lint
mkdir -p /usr/share/ansible/collections /usr/share/ansible/roles
ansible-galaxy collection install -r builder/requirements.yml -p /usr/share/ansible/collections
ansible-galaxy role install -r builder/requirements.yml -p /usr/share/ansible/roles

Expand All @@ -51,11 +52,9 @@ jobs:

- name: Set up Ansible collection dependencies
run: |
ansible-builder introspect \
--write-pip final_python.txt --write-bindep final_bindep.txt \
/usr/share/ansible/collections
pip install -r final_python.txt
bindep --file final_bindep.txt
ansible-builder introspect --write-pip final_python.txt --write-bindep final_bindep.txt /usr/share/ansible/collections
[[ -f final_python.txt ]] && pip install -r final_python.txt || echo "No Python dependencies found."
[[ -f final_bindep.txt ]] && bindep --file final_bindep.txt || echo "No system dependencies found."

- name: Report installed Python dependencies
run: pip freeze
Expand Down