-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
metadata.json
126 lines (126 loc) · 3.82 KB
/
metadata.json
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"$id": "pcit/docker",
"$comment": "https://docs.ci.khs1994.com/usage/",
"description": "The Docker plugin can be used to build and publish images to the Docker registry.",
"github": "https://github.com/pcit-plugins/pcit-docker",
"author": "PCIT",
"tags": "Container",
"title": "JSON schema for configuring PCIT CI/CD plugin",
"$schema": "http://json-schema.org/draft-07/schema",
"properties": {
"registry": {
"type": "string",
"description": "docker registry"
},
"repo": {
"type": [
"string",
"array"
],
"description": "docker repo, examples: username/image_name:tag"
},
"target": {
"type": "string",
"description": "--target"
},
"username": {
"type": "string",
"description": "docker registry username"
},
"password": {
"type": "string",
"description": "docker registry password"
},
"dry_run": {
"type": "boolean",
"description": "don't push",
"default": false
},
"context": {
"type": "string",
"description": "docker build context",
"default": " ."
},
"dockerfile": {
"type": "string",
"description": "-f, --file",
"default": " Dockerfile"
},
"buildx_image": {
"type": "string",
"description": "docker buildx create --driver-opt image= , e.g.\nmoby/buildkit:buildx-stable-1\ndockerpracticesig/buildkit:master",
"default": " moby/buildkit:buildx-stable-1"
},
"pull": {
"type": "boolean",
"description": "--pull",
"default": false
},
"build_args": {
"type": "array",
"uniqueItems": true,
"minItems": 1,
"description": "--build-arg"
},
"cache_from": {
"type": "array",
"uniqueItems": true,
"minItems": 1,
"description": "--cache-from\ne.g.\nuser/app:cache, type=local%2Csrc=path/to/dir"
},
"cache_to": {
"type": "array",
"uniqueItems": true,
"minItems": 1,
"description": "--cache-to\ne.g.\nuser/app:cache, type=local%2Cdest=path/to/dir"
},
"secret": {
"type": "array",
"uniqueItems": true,
"minItems": 1,
"description": "--secret\ne.g.\nid=mysecret%2Csrc=/local/secret"
},
"output": {
"type": "array",
"uniqueItems": true,
"minItems": 1,
"description": "--output\ne.g.\ntype=local%2Cdest=path"
},
"platform": {
"type": "array",
"uniqueItems": true,
"minItems": 1,
"description": "--platform",
"items": {
"enum": [
"linux/amd64",
"linux/arm64",
"linux/ppc64le",
"linux/s390x",
"linux/386",
"linux/arm/v7",
"linux/arm/v6"
]
}
},
"labels": {
"type": "array",
"uniqueItems": true,
"minItems": 1,
"description": "--label",
"default": [
"\n - org.opencontainers.image.revision=${PCIT_COMMIT}\n - org.opencontainers.image.source=https://github.com/${PCIT_REPO_SLUG}"
]
},
"no_cache": {
"type": "boolean",
"description": "--no-cache",
"default": false
}
},
"required": [
"repo",
"username",
"password"
]
}