From f3fe7ff56e49cca73d21b107ea41d19cfd51c6c8 Mon Sep 17 00:00:00 2001 From: Iker Pedrosa Date: Wed, 29 May 2024 16:26:39 +0200 Subject: [PATCH] CI: use Ansible build in Github Action Signed-off-by: Iker Pedrosa --- .github/workflows/runner.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/runner.yml b/.github/workflows/runner.yml index 5a1fef4ae3..d726321354 100644 --- a/.github/workflows/runner.yml +++ b/.github/workflows/runner.yml @@ -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