Skip to content

Commit 2a0018c

Browse files
committed
feat: add GitHub Actions CI workflow for building and pushing OCI images using podman
1 parent 6b3e3d7 commit 2a0018c

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

.github/workflows/mios-ci.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,16 @@ jobs:
110110
# `driver` makes `podman system reset` abort with "runroot must be set"
111111
# (install-robustness 2026-06-21). Use the standard rootful paths.
112112
echo -e '[storage]\ndriver = "overlay"\ngraphroot = "/var/lib/containers/storage"\nrunroot = "/run/containers/storage"\n[storage.options.overlay]\nmountopt = "nodev"' | sudo tee /etc/containers/storage.conf
113-
sudo podman system reset -f
113+
# The GHA runner ships a pre-seeded containers store whose libpod DB
114+
# may record an empty/foreign graph driver. `podman system reset`
115+
# reads that DB FIRST and aborts with 'database graph driver "" does
116+
# not match our graph driver "overlay"' BEFORE it can wipe. Remove
117+
# the stale store (rootful + rootless) so reset starts from a clean
118+
# slate, then make reset itself non-fatal (install-robustness
119+
# 2026-06-21).
120+
sudo rm -rf /var/lib/containers/storage /run/containers/storage
121+
rm -rf "${HOME}/.local/share/containers/storage" 2>/dev/null || true
122+
sudo podman system reset -f || true
114123
115124
- name: Free disk space on the GHA runner
116125
# GitHub-hosted ubuntu-24.04 runners ship with ~14 GB free on
@@ -310,7 +319,16 @@ jobs:
310319
# `driver` makes `podman system reset` abort with "runroot must be set"
311320
# (install-robustness 2026-06-21). Use the standard rootful paths.
312321
echo -e '[storage]\ndriver = "overlay"\ngraphroot = "/var/lib/containers/storage"\nrunroot = "/run/containers/storage"\n[storage.options.overlay]\nmountopt = "nodev"' | sudo tee /etc/containers/storage.conf
313-
sudo podman system reset -f
322+
# The GHA runner ships a pre-seeded containers store whose libpod DB
323+
# may record an empty/foreign graph driver. `podman system reset`
324+
# reads that DB FIRST and aborts with 'database graph driver "" does
325+
# not match our graph driver "overlay"' BEFORE it can wipe. Remove
326+
# the stale store (rootful + rootless) so reset starts from a clean
327+
# slate, then make reset itself non-fatal (install-robustness
328+
# 2026-06-21).
329+
sudo rm -rf /var/lib/containers/storage /run/containers/storage
330+
rm -rf "${HOME}/.local/share/containers/storage" 2>/dev/null || true
331+
sudo podman system reset -f || true
314332
315333
- name: Free disk space on the GHA runner (smoke job)
316334
# Same rationale as the main build job -- runner needs ~30 GB

0 commit comments

Comments
 (0)