]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
CI: use Ansible build in Github Action
authorIker Pedrosa <ipedrosa@redhat.com>
Wed, 29 May 2024 14:26:39 +0000 (16:26 +0200)
committerSerge Hallyn <serge@hallyn.com>
Thu, 18 Jul 2024 15:17:29 +0000 (10:17 -0500)
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
.github/workflows/runner.yml

index 5a1fef4ae3239227be24811aff4437ccb885c71d..881b63f127ec9d847da1ac4fbca1919cf2932963 100644 (file)
@@ -96,15 +96,25 @@ 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
+      if: always()
       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