From 1ece99ed21e313a8b0c8b0631d5dad710e97a0a2 Mon Sep 17 00:00:00 2001 From: Alasan <249001660@qq.com> Date: Thu, 30 May 2024 17:14:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Alasan/location/drone.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Alasan/location/drone.yaml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/Alasan/location/drone.yaml b/Alasan/location/drone.yaml index 06675a1..9ca23ed 100644 --- a/Alasan/location/drone.yaml +++ b/Alasan/location/drone.yaml @@ -4,12 +4,22 @@ name: default clone: display: false steps: +- name: loading cache + pull: if-not-exists + image: drillster/drone-volume-cache + volumes: + - name: cache + path: /cache + settings: + restore: true + mount: + - ./nugetpackages - name: git pull image: alpine/git commands: - git clone -b master http://119.91.37.71:3000/Alasan/location.git - name: wgetDist - image: linux + image: ubuntu:latest commands: - echo "start" - wget http://119.91.37.71:90/simp/location/simplocation.zip && unzip simplocation.zip @@ -28,6 +38,21 @@ steps: from_secret: docker_password tags: - latest +- name: rebuild cache + image: drillster/drone-volume-cache + volumes: + - name: cache + path: /cache + settings: + rebuild: true + mount: + - ./nugetpackages + + +volumes: +- name: cache + host: + path: /tmp/drone-cache trigger: branch: