Prune old images #127
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
name: Prune old images | |
on: | |
schedule: | |
- cron: "0 0 * * *" # every day at midnight | |
workflow_dispatch: | |
jobs: | |
prune-images: | |
name: Prune | |
runs-on: ubuntu-latest | |
steps: | |
- name: Prune dynamics-helper images | |
uses: vlaurin/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
organization: bcgov | |
container: pssg-spdbt/dynamics-helper | |
dry-run: false | |
keep-younger-than: 7 # days | |
keep-last: 5 | |
prune-untagged: true | |
- name: Prune screening-portal images | |
uses: vlaurin/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
organization: bcgov | |
container: pssg-spdbt/screening-portal | |
dry-run: false | |
keep-younger-than: 7 # days | |
keep-last: 5 | |
prune-untagged: true | |
- name: Prune licensing-portal images | |
uses: vlaurin/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
organization: bcgov | |
container: pssg-spdbt/licensing-portal | |
dry-run: false | |
keep-younger-than: 7 # days | |
keep-last: 5 | |
prune-untagged: true |