-
Notifications
You must be signed in to change notification settings - Fork 0
/
oci-mirror.yaml
48 lines (48 loc) · 1.37 KB
/
oci-mirror.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
43
44
45
46
47
48
---
# destination registries which requires authentication
registries:
"docker.io":
auth:
username:
password:
"localhost:5000":
auth:
username: admin
password: secret123
# images to mirror
images:
# source is the image which should get mirrored
- source: "alpine"
# to this new location
destination: "172.17.0.1:5000/library/alpine"
# match defines which images to mirror
match:
# tags is a list of image tags to mirror
tags:
- "3.17"
- "3.18"
# purge defines which tags should be purged, optional
purge:
# semver spec of tags to purge of this image
semver: "<= 3.16"
# tags to purge
tags:
- "foo"
- source: "busybox"
destination: "172.17.0.1:5000/library/busybox"
match:
# semver will only mirror the tags of the source images which match this semantic version constraint
semver: ">= 1.35"
purge:
# no_match will purge all images which are not matched with the above match spec, latest will never be purged
no_match: true
- source: "nginx"
destination: "172.17.0.1:5000/library/nginx"
match:
# only mirror the 20 newest semantic versioned image tags of this image
last: 20
- source: "ubuntu"
destination: "172.17.0.1:5000/library/ubuntu"
match:
# mirror all tags of this image
all_tags: true