From aaf5785c41da92c4a8b9cd82e37d9539f6178148 Mon Sep 17 00:00:00 2001 From: Alexey Volkov Date: Tue, 26 Nov 2019 20:29:19 -0800 Subject: [PATCH] Components - Git clone (#2658) --- components/git/clone/component.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 components/git/clone/component.yaml diff --git a/components/git/clone/component.yaml b/components/git/clone/component.yaml new file mode 100644 index 00000000000..0e18ed64e6c --- /dev/null +++ b/components/git/clone/component.yaml @@ -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