From aecccd6387be8d2d441baff7f0755f1a1947e7bd Mon Sep 17 00:00:00 2001 From: Ambrose Chua Date: Wed, 3 Jul 2019 09:33:22 +0800 Subject: [PATCH] Add histories to fix cloning --- .drone.yml | 24 +++++++++--------------- drone_gen.js | 11 +---------- 2 files changed, 10 insertions(+), 25 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7d8fbc6..8aeba49 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,7 +1,5 @@ kind: pipeline name: ssh-test -clone: - depth: 1 steps: - name: ssh image: appleboy/drone-ssh @@ -15,8 +13,6 @@ steps: --- kind: pipeline name: call-self -clone: - depth: 1 steps: - name: regenrate image: 'node:12-alpine' @@ -41,7 +37,7 @@ trigger: kind: pipeline name: backend-auth clone: - depth: 1 + depth: 32 steps: - name: submodule image: plugins/git @@ -81,7 +77,7 @@ trigger: kind: pipeline name: backend-core clone: - depth: 1 + depth: 32 steps: - name: submodule image: plugins/git @@ -121,7 +117,7 @@ trigger: kind: pipeline name: backend-heartbeat clone: - depth: 1 + depth: 32 steps: - name: submodule image: plugins/git @@ -161,7 +157,7 @@ trigger: kind: pipeline name: backend-login clone: - depth: 1 + depth: 32 steps: - name: submodule image: plugins/git @@ -201,7 +197,7 @@ trigger: kind: pipeline name: backend-permissions clone: - depth: 1 + depth: 32 steps: - name: submodule image: plugins/git @@ -241,7 +237,7 @@ trigger: kind: pipeline name: backend-pictures clone: - depth: 1 + depth: 32 steps: - name: submodule image: plugins/git @@ -281,7 +277,7 @@ trigger: kind: pipeline name: backend-store clone: - depth: 1 + depth: 32 steps: - name: submodule image: plugins/git @@ -321,7 +317,7 @@ trigger: kind: pipeline name: backend-transcription clone: - depth: 1 + depth: 32 steps: - name: submodule image: plugins/git @@ -361,7 +357,7 @@ trigger: kind: pipeline name: backend-webrtc clone: - depth: 1 + depth: 32 steps: - name: submodule image: plugins/git @@ -400,8 +396,6 @@ trigger: --- kind: pipeline name: deploy -clone: - depth: 1 steps: - name: submodule image: plugins/git diff --git a/drone_gen.js b/drone_gen.js index 395a727..f308fda 100644 --- a/drone_gen.js +++ b/drone_gen.js @@ -20,7 +20,7 @@ const yamls = dockers.map(f => ({ kind: 'pipeline', name: f, clone: { - depth: 1, + depth: 32, }, steps: [ { @@ -58,9 +58,6 @@ const yamls = dockers.map(f => ({ const sshTest = { kind: 'pipeline', name: 'ssh-test', - clone: { - depth: 1, - }, steps: [ { name: 'ssh', @@ -82,9 +79,6 @@ const sshTest = { const callSelf = { kind: 'pipeline', name: 'call-self', - clone: { - depth: 1, - }, steps: [ { name: 'regenrate', @@ -117,9 +111,6 @@ const callSelf = { const deploy = { kind: 'pipeline', name: 'deploy', - clone: { - depth: 1, - }, steps: [ { name: 'submodule',