Clean up old ZAC Docker Images #177
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# SPDX-FileCopyrightText: 2024 Lifely | |
# SPDX-License-Identifier: EUPL-1.2+ | |
# | |
name: Clean up old ZAC Docker Images | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" # every night at midnight, utc | |
permissions: | |
packages: write | |
jobs: | |
clean: | |
runs-on: ubuntu-24.04 | |
name: Delete ZAC Docker Images older than 8 weeks | |
steps: | |
- uses: snok/container-retention-policy@4f22ef80902ad409ed55a99dc5133cc1250a0d03 # v3.0.0 | |
with: | |
account: infonl | |
token: ${{ secrets.GITHUB_TOKEN }} | |
image-names: "zaakafhandelcomponent" | |
image-tags: "!latest" | |
cut-off: 8weeks | |
keep-n-most-recent: 10 | |
dry-run: false |