From 424f34b63ad26c93320f8f7897b4c4ebae442058 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 16 Dec 2024 17:25:31 +0800 Subject: [PATCH] fix: ci --- .drone.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) 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