From d5b9acf23fcf88347abffbf74daf5ca274d1fe68 Mon Sep 17 00:00:00 2001 From: Ashcon Partovi Date: Sun, 31 Dec 2017 03:53:31 -0700 Subject: [PATCH] Add special git build steps to clone into existing directory --- build.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/build.yml b/build.yml index 187db9d..0d30757 100644 --- a/build.yml +++ b/build.yml @@ -1,12 +1,26 @@ timeout: 15m steps: - - id: clone + - id: git-init name: gcr.io/cloud-builders/git args: - clone - - --depth=1 - - https://github.com/Electroid/infrastructure.git + - init - . + - id: git-add + name: gcr.io/cloud-builders/git + args: + - remote + - add + - -t + - \* + - -f + - origin + - https://github.com/Electroid/infrastructure.git + - id: git-checkout + name: gcr.io/cloud-builders/git + args: + - checkout + - master - id: m2-download name: gcr.io/cloud-builders/gsutil args: