mirror of
https://github.com/actions/runner.git
synced 2025-12-15 14:36:59 +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))
|
if (String.IsNullOrEmpty(result.Image))
|
||||||
{
|
{
|
||||||
context.Error(value, "Container image cannot be empty");
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -381,7 +381,7 @@
|
|||||||
"container-mapping": {
|
"container-mapping": {
|
||||||
"mapping": {
|
"mapping": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"image": "non-empty-string",
|
"image": "string",
|
||||||
"options": "non-empty-string",
|
"options": "non-empty-string",
|
||||||
"env": "container-env",
|
"env": "container-env",
|
||||||
"ports": "sequence-of-non-empty-string",
|
"ports": "sequence-of-non-empty-string",
|
||||||
@@ -415,10 +415,23 @@
|
|||||||
],
|
],
|
||||||
"one-of": [
|
"one-of": [
|
||||||
"non-empty-string",
|
"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": {
|
"container-registry-credentials": {
|
||||||
"context": [
|
"context": [
|
||||||
"secrets",
|
"secrets",
|
||||||
|
|||||||
Reference in New Issue
Block a user