From db610a23f49958d98858705f20fd63208d7937c9 Mon Sep 17 00:00:00 2001 From: spmfox Date: Tue, 28 May 2024 10:29:31 -0400 Subject: adding --no-cache and --pull=always to the update service and update.yml, we want the build to be started fresh each time --- templates/bootcblade-rebuild.service.j2 | 2 +- update.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/bootcblade-rebuild.service.j2 b/templates/bootcblade-rebuild.service.j2 index 525978a..17aa89a 100644 --- a/templates/bootcblade-rebuild.service.j2 +++ b/templates/bootcblade-rebuild.service.j2 @@ -2,5 +2,5 @@ Description=BootcBlade rebuild service [Service] -ExecStart=/usr/bin/podman build -t localhost/bootcblade -f /root/bootcblade.containerfile +ExecStart=/usr/bin/podman build -t localhost/bootcblade -f /root/bootcblade.containerfile --no-cache --pull=always ExecStartPost=/usr/bin/bash -c "/usr/bin/sleep 10 ; /usr/bin/bootc update && /usr/bin/podman image prune -f" diff --git a/update.yml b/update.yml index 9d23f7a..8e892a9 100644 --- a/update.yml +++ b/update.yml @@ -9,7 +9,7 @@ dest: "/root/bootcblade.containerfile" - name: Build BootcBlade container image - ansible.builtin.shell: "podman build -t localhost/bootcblade -f /root/bootcblade.containerfile" + ansible.builtin.shell: "podman build -t localhost/bootcblade -f /root/bootcblade.containerfile --no-cache --pull=always" - name: Run bootc-update to apply newly built image ansible.builtin.shell: "bootc update" -- cgit