From e19d759a863bd2d50959b0bca63738ab71509a86 Mon Sep 17 00:00:00 2001 From: InkSoul Date: Sat, 12 Aug 2023 10:44:14 +0800 Subject: [PATCH] Revert "test drone-cache" This reverts commit 4ea098dca8ce3028dde28b541c4e819c591dc5e0. --- hugobuild.drone.yml | 29 +++-------------------------- 1 file changed, 3 insertions(+), 26 deletions(-) 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