luis %!s(int64=7) %!d(string=hai) anos
pai
achega
ce655075b3
Modificáronse 1 ficheiros con 25 adicións e 1 borrados
  1. 25 1
      .drone.yml

+ 25 - 1
.drone.yml

@@ -8,6 +8,16 @@ cache:
     - "go/deps"
 
 pipeline:
+  restore-cache:
+    image: drillster/drone-volume-cache
+    restore: true
+    mount:
+      - ./browser/vue-flow/node_modules
+      - ./go/deps
+    # Mount the cache volume, needs "Trusted"
+    volumes:
+      - /tmp/cache:/cache
+
   backend: 
     image: golang
     environment:
@@ -24,6 +34,18 @@ pipeline:
       - cd browser/vue-flow 
       - yarn 
       - yarn build
+
+   rebuild-cache:
+    image: drillster/drone-volume-cache
+    rebuild: true
+    mount:
+      - ./browser/vue-flow/node_modules
+      - ./go/deps
+    # Mount the cache volume, needs "Trusted"
+    volumes:
+      - /tmp/cache:/cache
+
+
   deploy:
     image: docker
     when:
@@ -40,10 +62,12 @@ pipeline:
       - /home/stdio/.docker/config.json:/root/.docker/config.json
   notify:
     image: drillster/drone-email
+    from: drone@hexasoftware.com
     host: mail.hexasoftware.com
     skip_verify: true
     username: drone@hexasoftware.com
-    from: drone@hexasoftware.com
+    recipients:
+      - luisf@hexasoftware.com
     secrets: [email_password]
     when:
       status: [ changed, failure, success ]