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