diff --git a/hugobuild.drone.yml b/hugobuild.drone.yml index 8636b92..24eeaab 100644 --- a/hugobuild.drone.yml +++ b/hugobuild.drone.yml @@ -10,7 +10,7 @@ steps: - name: check_cache image: alpine/git commands: - - if [ -d ".git" ]; then + - if [ -d "/cache/" ]; then echo "Cache exists,pulling newer commit" git pull else @@ -31,10 +31,10 @@ steps: image: drillster/drone-volume-cache settings: cache_to: - - .git + - cache volumes: - name: cache - path: .git + path: /cache volumes: #声明数据卷 - name: blog