Add special git build steps to clone into existing directory

This commit is contained in:
Ashcon Partovi 2017-12-31 03:53:31 -07:00
parent 5cfd94c5c2
commit d5b9acf23f
No known key found for this signature in database
GPG Key ID: 97468B9EF2123630
1 changed files with 17 additions and 3 deletions

View File

@ -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: