Skip to content

Commit

Permalink
Components - Git clone (#2658)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark-kun authored and k8s-ci-robot committed Nov 27, 2019
1 parent 6c1c641 commit aaf5785
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions components/git/clone/component.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
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

0 comments on commit aaf5785

Please sign in to comment.