|
@@ -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 ]
|