-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathtask.json
More file actions
156 lines (155 loc) · 4.88 KB
/
task.json
File metadata and controls
156 lines (155 loc) · 4.88 KB
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{
"$schema": "https://raw.githubusercontent.com/microsoft/azure-pipelines-task-lib/master/tasks.schema.json",
"id": "d784888b-f54b-4926-a8d1-3a159d2de8e0",
"name": "DevcontainersCi",
"friendlyName": "Devcontainers CI Task",
"description": "Build and run Dev Containers (https://containers.dev) in Azure DevOps Pipelines",
"author": "Devcontainers",
"helpMarkDown": "",
"category": "Build",
"version": {
"Major": 0,
"Minor": 3,
"Patch": 0
},
"visibility": [
"Build",
"Release"
],
"demands": [
"npm"
],
"minimumAgentVersion": "1.83.0",
"instanceNameFormat": "Build and Run Dev Container: $(rootFolder)",
"inputs": [
{
"name": "imageName",
"type": "string",
"label": "Image name (including registry)",
"required": false
},
{
"name": "imageTag",
"type": "string",
"label": "One or more comma-separated image tags (defaults to latest)",
"required": false
},
{
"name": "platform",
"type": "string",
"label": "Platforms for which the image should be built. If omitted, defaults to the platform of the Azure DevOps Agent. Multiple platforms should be comma separated.",
"required": false
},
{
"name": "runCmd",
"type": "multiLine",
"label": "Specify the command to run after building the dev container image",
"required": false
},
{
"name": "subFolder",
"type": "string",
"label": "Specify a child folder (containing a .devcontainer) instead of using the repository root",
"required": false
},
{
"name": "configFile",
"type": "string",
"label": "Specify the path to a devcontainer.json file instead of using `./.devcontainer/devcontainer.json` or `./.devcontainer.json`",
"required": false
},
{
"name": "env",
"type": "multiLine",
"label": "Specify environment variables to pass to the docker run command",
"required": false
},
{
"name": "inheritEnv",
"type": "boolean",
"label": "Inherit all environment variables of the runner CI machine",
"defaultValue": false,
"required": false
},
{
"name": "push",
"type": "pickList",
"options": {
"never": "Never push",
"filter": "Push if buildReasonsForPush, sourceBranchFilterForPush, and pushOnFailedBuild conditions are met",
"always": "Always push"
},
"required": false,
"label": "Control when images are pushed to the registry"
},
{
"name": "pushOnFailedBuild",
"type": "boolean",
"defaultValue": false,
"required": false,
"label": "Control whether to push the image on failed builds (if push==filter)"
},
{
"name": "buildReasonsForPush",
"type": "multiLine",
"label": "Set the Build Reasons that should trigger a push of the dev container image (if push=filter). Defaults to Manual, IndividualCI, BatchedCI. (see https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&viewFallbackFrom=vsts&tabs=yaml)",
"required": false,
"defaultValue": "Manual\nIndividualCI\nBatchedCI"
},
{
"name": "sourceBranchFilterForPush",
"type": "multiLine",
"label": "Set the source branches (e.g. refs/heads/main) that are allowed to trigger a push of the dev container image (if push=filter). Leave empty to allow all.",
"required": false,
"defaultValue": ""
},
{
"name": "skipContainerUserIdUpdate",
"type": "boolean",
"label": "For non-root Dev Containers (i.e. where `remoteUser` is specified), the action attempts to make the container user UID and GID match those of the host user. Set this to true to skip this step (defaults to false)",
"required": false,
"defaultValue": false
},
{
"name": "cacheFrom",
"type": "multiLine",
"label": "Specify additional images to use for build caching",
"required": false
},
{
"name": "noCache",
"type": "boolean",
"label": "Builds the image with `--no-cache` (takes precedence over `cacheFrom`)",
"required": false
},
{
"name": "cacheTo",
"type": "multiLine",
"label": "Specify the image to cache the built image to",
"required": false
},
{
"name": "useNativeRunner",
"type": "boolean",
"label": "Set to true for native multi-platform builds. When true, platform must be a single value and the image tag suffix is auto-derived.",
"required": false,
"defaultValue": false
}
],
"outputVariables": [{
"name": "runCmdOutput",
"description": "The output of the command specified in the runCmd input"
}],
"execution": {
"Node16": {
"target": "run-main.js",
"argumentFormat": ""
}
},
"postjobexecution": {
"Node16": {
"target": "run-post.js",
"argumentFormat": ""
}
}
}