Browse Source

ci/cd: use aliyun repo as source

wangweimin 5 years ago
parent
commit
1eac3e2102
1 changed files with 4 additions and 5 deletions
  1. 4 5
      .drone.yml

+ 4 - 5
.drone.yml

@@ -12,12 +12,11 @@ trigger:
 steps:
   - name: clone
     commands:
-      - git config --global http.https://github.com.proxy socks5://127.0.0.1:1080
-      - git config --global https.https://github.com.proxy socks5://127.0.0.1:1080
+      - sleep 120
       - git init
-      - git remote add origin $DRONE_GIT_HTTP_URL
-      - git fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +$DRONE_COMMIT:refs/remotes/origin/$DRONE_BRANCH
-      - git checkout --progress --force -B $DRONE_BRANCH refs/remotes/origin/$DRONE_BRANCH
+      - git remote add aliyun "https://code.aliyun.com/wang0618/pywebio.git"
+      - git fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 aliyun $DRONE_BRANCH
+      - git checkout --progress --force -B $DRONE_BRANCH aliyun/$DRONE_BRANCH
       - git log -1
   - name: deploy demos
     commands: