-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (53 loc) · 1.46 KB
/
cleanup.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Prune images
on:
workflow_run:
workflows: [Docker-build]
types: [completed]
jobs:
prune:
runs-on: ubuntu-latest
steps:
- name: prune-staging-api
uses: vlaurin/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
organization: keymanapp
container: api-keyman-com-app
dry-run: true
keep-younger-than: 7
keep-last: 3
prune-tags-regexes: staging
prune-untagged: true
- name: prune-staging-db
uses: vlaurin/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
organization: keymanapp
container: api-keyman-com-db
dry-run: true
keep-younger-than: 7
keep-last: 3
prune-tags-regexes: staging
prune-untagged: true
- name: prune-production-api
uses: vlaurin/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
organization: keymanapp
container: api-keyman-com-app
dry-run: true
keep-younger-than: 7
keep-last: 3
prune-tags-regexes: master
prune-untagged: true
- name: prune-production-db
uses: vlaurin/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
organization: keymanapp
container: api-keyman-com-db
dry-run: true
keep-younger-than: 7
keep-last: 3
prune-tags-regexes: master
prune-untagged: true