Skip to content

Commit

Permalink
CI: use Ansible build in Github Action
Browse files Browse the repository at this point in the history
Signed-off-by: Iker Pedrosa <[email protected]>
  • Loading branch information
ikerexxe committed May 29, 2024
1 parent bf10316 commit f3fe7ff
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,16 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Ansible
run: |
sudo apt-get update
sudo apt-get -y install ansible
- name: Build container
run: |
docker buildx build -f ./share/containers/${{ matrix.os }}.dockerfile . --output build-out
pushd share/ansible/
ansible-playbook playbook.yml -i inventory.ini -e 'distribution=${{ matrix.os }}'
popd
- name: Store artifacts
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit f3fe7ff

Please sign in to comment.