diff --git a/hugobuild.drone.yml b/hugobuild.drone.yml index 24eeaab..f6d53bd 100644 --- a/hugobuild.drone.yml +++ b/hugobuild.drone.yml @@ -3,23 +3,12 @@ type: docker name: blog-publish clone: - disable: true # 启用代码拉取 - + disable: false # 启用代码拉取 steps: - - name: check_cache - image: alpine/git - commands: - - if [ -d "/cache/" ]; then - echo "Cache exists,pulling newer commit" - git pull - else - echo "Cache not exists,cloning" - git clone https://gitea.inksoul.top/inksoul/InkSoul.git; - fi - - name: build image: inksoul/hugo-rsync + depends_on: [clone] # 依赖的步骤, volumes: #挂载数据卷 - name: blog path: /data @@ -27,19 +16,7 @@ steps: - hugo - rsync -a --delete --exclude '.user.ini' public/ /data - - name: save_cache - image: drillster/drone-volume-cache - settings: - cache_to: - - cache - volumes: - - name: cache - path: /cache - volumes: #声明数据卷 - name: blog host: - path: /home/ubuntu/myWork/Blog/InkSoul/public - - name: cache - host: - path: /home/ubuntu/myWork/blogCachePath \ No newline at end of file + path: /home/ubuntu/myWork/Blog/InkSoul/public \ No newline at end of file