-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.14 KB
/
prune-images.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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