From 1c658c9a8c9c6330919a4e5dff8dbb5cd99bfd4c Mon Sep 17 00:00:00 2001 From: Jonathan Yu Date: Mon, 27 Sep 2021 08:42:08 -0700 Subject: [PATCH] chore: re-build images weekly instead of daily (#103) * Re-build images on Mondays, rather than daily * Add a comment explaining rationale for the rebuild schedule --- .github/workflows/build.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index f8114d7..5ffc178 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -10,8 +10,17 @@ on: - main schedule: - # Run at 2am UTC - - cron: "0 2 * * *" + # Re-build all images at 2am UTC every Monday (8pm CST/9pm CDT) + # + # This ensures we always start with a recent base image, which + # reduces wasted space due to written-over files in the writable + # layer, ensures packages are up-to-date (since many of these + # images install the latest versions of packages available at + # build time), and allow us to ensure that images continue to + # be buildable from source (no removed packages). + # + # See: https://crontab.guru/#0_2_*_*_1 + - cron: "0 2 * * 1" workflow_dispatch: