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: