From 9b0fa40a5d2676e55a07ce11cfadb1c18579fe8d Mon Sep 17 00:00:00 2001 From: Daniel Flook Date: Tue, 17 Dec 2024 23:27:49 +0000 Subject: [PATCH] Ensure we have enough disk space to pull images --- .github/workflows/retain-images.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/retain-images.yaml b/.github/workflows/retain-images.yaml index 4b7a76e8..576ae3ab 100644 --- a/.github/workflows/retain-images.yaml +++ b/.github/workflows/retain-images.yaml @@ -3,6 +3,9 @@ name: Retain images on: schedule: - cron: 0 0 1 * * + push: + paths: + - .github/workflows/retain-images.yaml permissions: contents: read @@ -22,4 +25,5 @@ jobs: run: | for tag in $(git tag); do docker pull --quiet danielflook/terraform-github-actions:$tag + docker system prune --all --force done