From 152888f21654e15fc059b025ff9d35c6951dfc0b Mon Sep 17 00:00:00 2001 From: Matt Date: Sun, 14 Jan 2024 13:31:12 -0500 Subject: [PATCH] Bind-mount repo in image builder (#1157) Reduces built image size by not accidentally copying source in --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 77c9121cd..741c7c139 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -307,6 +307,8 @@ jobs: image_additional_mb: ${{ matrix.image_additional_mb }} optimize_image: yes cpu: ${{ matrix.cpu }} + # We do _not_ wanna copy photon into the image. Bind mount instead + bind_mount_repository: true commands: | chmod +x scripts/armrunner.sh ./scripts/armrunner.sh