workspace: base: /app path: . cache: - ".git" - "browser/vue-flow/node_modules" - "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: - GOPATH=/app/go/deps:/app/go commands: - go get github.com/axw/gocov/gocov - go get -d ./go/src/... - go get -d -t ./go/src/... - go/deps/bin/gocov test -v -race ./go/src/... | go/deps/bin/gocov report - CGO_ENABLED=0 go build -o DIST/flowserver flowserver/cmd/flowserver frontend: image: node:6 commands: - 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: event: deployment environment: staging commands: - echo $HOME - mkdir -p DIST - cp -r browser/vue-flow/dist DIST/web - docker build --rm -t hexasoftware.com:5000/flow-proto -f ./docker/Dockerfile . - docker push hexasoftware.com:5000/flow-proto volumes: - /var/run/docker.sock:/var/run/docker.sock - /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 recipients: - luisf@hexasoftware.com secrets: [email_password] when: status: [ failure, success ]