Use correct name for the root depends_on yaml key.
This commit is contained in:
@@ -48,6 +48,7 @@ func TestParse(t *testing.T) {
|
|||||||
Clone: manifest.Clone{
|
Clone: manifest.Clone{
|
||||||
Depth: 50,
|
Depth: 50,
|
||||||
},
|
},
|
||||||
|
Deps: []string{"dependency"},
|
||||||
PullSecrets: []string{"dockerconfigjson"},
|
PullSecrets: []string{"dockerconfigjson"},
|
||||||
Trigger: manifest.Conditions{
|
Trigger: manifest.Conditions{
|
||||||
Branch: manifest.Condition{
|
Branch: manifest.Condition{
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ type Pipeline struct {
|
|||||||
Kind string `json:"kind,omitempty"`
|
Kind string `json:"kind,omitempty"`
|
||||||
Type string `json:"type,omitempty"`
|
Type string `json:"type,omitempty"`
|
||||||
Name string `json:"name,omitempty"`
|
Name string `json:"name,omitempty"`
|
||||||
Deps []string `json:"depends_on,omitempty"`
|
Deps []string `json:"depends_on,omitempty" yaml:"depends_on"`
|
||||||
|
|
||||||
Clone manifest.Clone `json:"clone,omitempty"`
|
Clone manifest.Clone `json:"clone,omitempty"`
|
||||||
Concurrency manifest.Concurrency `json:"concurrency,omitempty"`
|
Concurrency manifest.Concurrency `json:"concurrency,omitempty"`
|
||||||
|
|||||||
3
engine/resource/testdata/manifest.yml
vendored
3
engine/resource/testdata/manifest.yml
vendored
@@ -14,6 +14,9 @@ type: docker
|
|||||||
name: default
|
name: default
|
||||||
version: 1
|
version: 1
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- dependency
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|||||||
Reference in New Issue
Block a user