mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-18 14:36:30 +00:00
change script to pipeline
This commit is contained in:
parent
712319c913
commit
eaf2d30335
3 changed files with 4 additions and 3 deletions
|
@ -45,6 +45,7 @@ func (v *workspaceOp) VisitContainer(node *parse.ContainerNode) error {
|
||||||
// container should launch in the workspace
|
// container should launch in the workspace
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
node.Container.WorkingDir = node.Root().Path
|
root := node.Root()
|
||||||
|
node.Container.WorkingDir = root.Path
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -141,7 +141,7 @@ type root struct {
|
||||||
Volumes volumeList
|
Volumes volumeList
|
||||||
Networks networkList
|
Networks networkList
|
||||||
Services containerList
|
Services containerList
|
||||||
Script containerList
|
Script containerList `yaml:"pipeline"`
|
||||||
Cache container
|
Cache container
|
||||||
Clone container
|
Clone container
|
||||||
Build build
|
Build build
|
||||||
|
|
|
@ -64,7 +64,7 @@ clone:
|
||||||
cache:
|
cache:
|
||||||
mount: node_modules
|
mount: node_modules
|
||||||
|
|
||||||
script:
|
pipeline:
|
||||||
test:
|
test:
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
|
|
Loading…
Reference in a new issue