Commit 631d0d646bc2

Vincent Demeester <vincent@sbr.pm>
2022-09-02 13:54:59
systems/aomi: sync only alpine 3.x…
… and preserve digests Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent d3d4c2d
Changed files (2)
systems/hosts/aomi.nix
@@ -99,7 +99,7 @@ in
               };
               "images-by-tag-regex" = {
                 # sync all "3.x" images"
-                "alpine" = "^[1-9]\.[0-9]+$";
+                "alpine" = "^3\.[0-9]+$";
               };
             };
           };
systems/modules/dev/containers-image-mirroring.nix
@@ -60,13 +60,13 @@ in
 
 
         # Pull to dir first
-        skopeo sync --src yaml --dest dir \
+        skopeo sync --preserve-digests --src yaml --dest dir \
                ${settingsFile} \
                $BUILDTMPDIR
 
         # Push to targets
         for target in ${lib.strings.concatStringsSep " " cfg.targets}; do
-            skopeo sync --src dir --dest docker \
+            skopeo sync --preserve-digests --src dir --dest docker \
                    $BUILDTMPDIR \
                    $target
         done