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 Jun 5, 2024
1 parent 726ae6b commit 095df42
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,24 @@ 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
with:
name: ${{ matrix.os }}-build
path: |
./build-out/config.log
./build-out/config.h
./share/ansible/build-out/config.log
./share/ansible/build-out/config.h
./share/ansible/build-out/build.log
./share/ansible/build-out/test-suite.log
if-no-files-found: ignore

0 comments on commit 095df42

Please sign in to comment.