From 4dde05bd0f10e54d2f9798cf6233bc102a28452b Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 8 May 2025 08:56:24 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.drone.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1eb6df5..3cd7a72 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,24 +8,8 @@ clone: steps: - name: git-incremental-sync image: alpine/git:latest - volumes: - - name: git-repo-cache - path: /cache commands: - - - mkdir -p /cache/my-repo - - cd /cache/my-repo - - - | - if [ -d .git ]; then - git remote set-url origin ${DRONE_REPO_URL} - git fetch origin --depth=1 ${DRONE_COMMIT_BRANCH} - git reset --hard ${DRONE_COMMIT_SHA} - else - git clone ${DRONE_REPO_URL} . --depth=1 --branch=${DRONE_COMMIT_BRANCH} - fi - - - cp -r /cache/my-repo ${DRONE_WORKSPACE} + - sleep 10 node: app: build