forked from dataaxiom/ghcr-cleanup-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
67 lines (53 loc) · 1.35 KB
/
action.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
58
59
60
61
62
63
64
65
66
67
name: ghcr.io Container Repository Cleanup Action
description: >
Delete obsolete images from a repository in the GitHub Container Registry
(ghcr.io).
author: Jens Keiner
branding:
icon: trash-2
color: red
inputs:
token:
description: >
Token to authenticate with the ghcr.io registry and the GitHub API
required: true
owner:
description: >
Owner of the package (user or organization)
required: false
repository:
description: >
The GitHub repository where the package is stored. Defaults to repository
name.
required: false
package:
description: >
The package name. Defaults to the repository name.
required: false
include-tags:
description: >
Regular expression that matches tags to delete
required: false
exclude-tags:
description: >
Regular expression that matches tags to keep
required: false
keep-n-tagged:
description: >
Number of most recent tagged images to keep
required: false
keep-n-untagged:
description: >
Number of most recent untagged images to keep
required: false
dry-run:
description: >
Simulate action, do not actually remove any packages
required: false
log-level:
description: >
Log level (error/warn/info/debug)
default: warn
runs:
using: node20
main: dist/index.js