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