aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/bootcblade-rebuild.service.j22
-rw-r--r--update.yml2
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"