diff --git a/.drone.yml b/.drone.yml index 1f9e9b7..6047cf0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,7 +6,8 @@ host_aliases: hostnames: - git.1000my.com clone: - disable: true + pull: if-not-exists + depth: 1 trigger: branch: @@ -25,18 +26,6 @@ volumes: steps: - - name: "Checkout" - image: registry.cn-hangzhou.aliyuncs.com/qmiot/init:alpine-git-v2.36.2 - pull: if-not-exists - commands: - - echo 192.168.0.2 git.1000my.com >> /etc/hosts - - ping git.1000my.com -c 1 - - git init - - git fetch '--depth=1' origin $CI_COMMIT_REF - - git checkout $CI_COMMIT_SHA -b $DRONE_REPO_BRANCH - # - git clone --depth=1 $DRONE_GIT_HTTP_URL . - - git submodule update --init --recursive - - name: 生成Release版本 pull: if-not-exists image: registry.cn-hangzhou.aliyuncs.com/tgabc-namespace/tgabc:semantic-release-v21.0.1