forked from machship/ghcr-delete-image-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
60 lines (48 loc) · 1.49 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
name: GHCR Delete Image
description: >
Delete GitHub Container Registry Image by specified tag (or without tag).
Options tag, untagged-keep-latest and untagged-older-than mutually exclusive.
author: machship
branding:
icon: delete
color: blue
inputs:
owner:
description: >
Owner of the package (user or organization)
required: true
name:
description: >
Name of the package containing the version to delete.
required: true
token:
description: >
Token with the necessary scopes to delete package versions.
required: true
tag:
description: >
Tag to delete
required: false
untagged-keep-latest:
description: >
Delete all untagged images except the last N
required: false
untagged-older-than:
description: >
Delete all untagged images older than N in days.
required: false
tag-regex:
description: >
regex to apply to tags. images will be included if ANY of the tags match the entered regex. If this is set, tagged-keep-latest must also be set
required: false
tagged-keep-latest:
description: >
Delete all tagged images matching tag-regex except the last N. if this is set, tag-regex must also be set
required: false
ignore-missing-package:
description: >
If the package is not found an error will be raised. If you set this to true then the error will be logged but ignored
required: false
runs:
using: 'node16'
main: 'dist/index.js'