From 00be92db8944cd3130ef461d3cdefb0a7b05b623 Mon Sep 17 00:00:00 2001 From: Liora Milbaum Date: Sat, 4 May 2024 01:18:53 +0300 Subject: [PATCH] Build and Install Bootc Image Signed-off-by: Liora Milbaum --- .github/workflows/training-e2e.yaml | 7 ++++--- training/provision/playbook.yml | 19 ++++++++++++++----- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/training-e2e.yaml b/.github/workflows/training-e2e.yaml index 6f0038725..3d1f5f726 100644 --- a/.github/workflows/training-e2e.yaml +++ b/.github/workflows/training-e2e.yaml @@ -10,6 +10,7 @@ on: - main paths: - .github/workflows/training-e2e.yaml + - training workflow_dispatch: @@ -21,9 +22,9 @@ env: TF_VAR_aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }} TF_VAR_aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} -concurrency: - group: ${{ github.workflow }} - cancel-in-progress: false +# concurrency: +# group: ${{ github.workflow }} +# cancel-in-progress: false jobs: e2e: diff --git a/training/provision/playbook.yml b/training/provision/playbook.yml index c40be8e62..d4219aa31 100644 --- a/training/provision/playbook.yml +++ b/training/provision/playbook.yml @@ -41,8 +41,8 @@ register: build_result ansible.builtin.shell: | podman build -t derived_image:latest -f /tmp/Containerfile --authfile=/etc/containers/auth.json . - 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 - + podman run --rm --privileged --pid=host --security-opt label=type:unconfined_t -v /:/target -v /var/lib/containers:/var/lib/containers localhost/derived_image:latest bootc install to-filesystem --karg=console=ttyS0,115200n8 --replace=alongside /target + - name: Check on Build and Install Bootc Image async_status: jid: "{{ build_result.ansible_job_id }}" @@ -51,6 +51,15 @@ retries: 100 delay: 10 - - name: Restart instance - ansible.builtin.reboot: - test_command: which ilab + # - name: List images + # register: list_result + # ansible.builtin.shell: | + # podman images + + # - ansible.builtin.debug: msg="{{ list_result }}" + + # - name: Restart instance + # ansible.builtin.reboot: + # test_command: which ilab + # # vars: + # # remote_user: root