mirror of
https://github.com/actions/runner.git
synced 2025-12-14 13:43:33 +00:00
Allow container.image to be null/empty
This commit is contained in:
@@ -316,7 +316,7 @@ namespace GitHub.DistributedTask.Pipelines.ObjectTemplating
|
||||
|
||||
if (String.IsNullOrEmpty(result.Image))
|
||||
{
|
||||
context.Error(value, "Container image cannot be empty");
|
||||
return null;
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
@@ -381,7 +381,7 @@
|
||||
"container-mapping": {
|
||||
"mapping": {
|
||||
"properties": {
|
||||
"image": "non-empty-string",
|
||||
"image": "string",
|
||||
"options": "non-empty-string",
|
||||
"env": "container-env",
|
||||
"ports": "sequence-of-non-empty-string",
|
||||
@@ -415,10 +415,23 @@
|
||||
],
|
||||
"one-of": [
|
||||
"non-empty-string",
|
||||
"container-mapping"
|
||||
"services-container-mapping"
|
||||
]
|
||||
},
|
||||
|
||||
"services-container-mapping": {
|
||||
"mapping": {
|
||||
"properties": {
|
||||
"image": "non-empty-string",
|
||||
"options": "non-empty-string",
|
||||
"env": "container-env",
|
||||
"ports": "sequence-of-non-empty-string",
|
||||
"volumes": "sequence-of-non-empty-string",
|
||||
"credentials": "container-registry-credentials"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"container-registry-credentials": {
|
||||
"context": [
|
||||
"secrets",
|
||||
|
||||
Reference in New Issue
Block a user