diff --git a/.github/workflows/training-e2e.yaml b/.github/workflows/training-e2e.yaml index 6f0038725..bddfc7cb7 100644 --- a/.github/workflows/training-e2e.yaml +++ b/.github/workflows/training-e2e.yaml @@ -85,9 +85,9 @@ jobs: - name: Provision run: | ansible-playbook ./main/training/provision/playbook.yml \ + -vvv \ -i terraform-test-environment-module/hosts.ini \ --private-key=terraform-test-environment-module/${{ steps.terraform-output.outputs.pem_filename }} \ - --extra-vars "image_name=${{ matrix.image_name }}" \ --extra-vars "ssh_public_key='${{ steps.terraform-output.outputs.ssh_public_key }}'" \ --extra-vars "registry_user=${{ secrets.REGISTRY_USER }}" \ --extra-vars "registry_password=${{ secrets.REGISTRY_PASSWORD }}" diff --git a/training/provision/playbook.yml b/training/provision/playbook.yml index c40be8e62..912b76579 100644 --- a/training/provision/playbook.yml +++ b/training/provision/playbook.yml @@ -41,6 +41,24 @@ register: build_result ansible.builtin.shell: | podman build -t derived_image:latest -f /tmp/Containerfile --authfile=/etc/containers/auth.json . + + - name: Check on Derived Image Build + async_status: + jid: "{{ build_result.ansible_job_id }}" + register: job_result + until: job_result.finished + retries: 33 + delay: 30 + + - name: Check images + ansible.builtin.shell: | + podman images --format="{{.Repository}} {{.ID}}" | grep "derived_images" | awk '{print $2}' + + - name: Build and Install the Bootc Image + async: 1000 + poll: 0 + register: build_result + ansible.builtin.shell: | podman run --rm --privileged --pid=host --security-opt label=type:unconfined_t -v /:/target -v /var/lib/containers:/var/lib/containers derived_image:latest bootc install to-filesystem --karg=console=ttyS0,115200n8 --replace=alongside /target - name: Check on Build and Install Bootc Image