Use correct name for the root depends_on yaml key.

This commit is contained in:
Staffan Selander
2021-07-06 08:34:32 +02:00
parent e4064e6260
commit 7c8f0423d0
3 changed files with 6 additions and 2 deletions

View File

@@ -48,6 +48,7 @@ func TestParse(t *testing.T) {
Clone: manifest.Clone{
Depth: 50,
},
Deps: []string{"dependency"},
PullSecrets: []string{"dockerconfigjson"},
Trigger: manifest.Conditions{
Branch: manifest.Condition{

View File

@@ -26,7 +26,7 @@ type Pipeline struct {
Kind string `json:"kind,omitempty"`
Type string `json:"type,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"`
Concurrency manifest.Concurrency `json:"concurrency,omitempty"`

View File

@@ -14,6 +14,9 @@ type: docker
name: default
version: 1
depends_on:
- dependency
platform:
os: linux
arch: arm64
@@ -56,4 +59,4 @@ image_pull_secrets:
trigger:
branch: [ master ]
...
...