aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspmfox <spmfox@foxwd.com>2024-05-28 10:29:31 -0400
committerspmfox <spmfox@foxwd.com>2024-05-28 10:29:31 -0400
commitdb610a23f49958d98858705f20fd63208d7937c9 (patch)
tree9cecbbc895142beb0491db2d1511856f1249ade1
parenta2f4ef8a1d83ac42195ad9c10d95572b44609dcd (diff)
adding --no-cache and --pull=always to the update service and update.yml, we want the build to be started fresh each time
-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"