You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/policies.md
+19
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,25 @@ Any valid regex (supported by this crate) can be used.
99
99
tag.pattern: .+-(beta|alpha)
100
100
```
101
101
102
+
### Size policy
103
+
> Affection type: `Target`
104
+
>
105
+
> Identifier: `size`
106
+
>
107
+
> Default: `None`
108
+
109
+
The size policy matches all tags which exceed the provided blob size. For size parsing the [parse-size](https://crates.io/crates/parse-size) crate is used.
110
+
Any valid size (supported by this crate) can be used
111
+
112
+
>[!NOTE]
113
+
> The library uses `MiB`, `GiB` etc. which are the binary representations instead of the usual decimal representations of the size. Therefore, `1 MiB` is `1_048_576` bytes
114
+
> instead of `1_000_000` bytes as one might expect
115
+
116
+
```yaml
117
+
# Would match all tags whose total blob size exceed 256 MiB
118
+
size: 256 MiB
119
+
```
120
+
102
121
## Repository policies
103
122
104
123
Repository policies are used to determine for which images a rule should be applied
0 commit comments