pipelines/components/git/clone/component.yaml

19 lines
409 B
YAML

name: Git clone
description: Creates a shallow clone of the specified repo branch
inputs:
- {name: Repo URI, type: URI}
- {name: Branch, type: String, default: master}
outputs:
- {name: Repo dir, type: Directory}
implementation:
container:
image: alpine/git
command:
- git
- clone
- --depth=1
- --branch
- inputValue: Branch
- inputValue: Repo URI
- outputPath: Repo dir