.drone.yml 819 B

1234567891011121314151617181920212223242526272829303132
  1. workspace:
  2. base: /app
  3. path: .
  4. pipeline:
  5. backend:
  6. image: golang
  7. environment:
  8. - GOPATH=/app/go/deps:/app/go
  9. commands:
  10. - go get -d ./go/src/...
  11. - go get -d -t ./go/src/...
  12. - go test ./go/src/...
  13. - CGO_ENABLED=0 go build -o DIST/flowserver flowserver/cmd/flowserver
  14. frontend:
  15. image: node:6
  16. commands:
  17. - cd browser/vue-flow
  18. - yarn
  19. - yarn build
  20. deploy:
  21. image: docker
  22. commands:
  23. - echo $HOME
  24. - mkdir -p DIST
  25. - cp -r browser/vue-flow/dist DIST/web
  26. - docker build --rm -t hexasoftware.com:5000/flow-proto -f ./docker/Dockerfile .
  27. - docker push hexasoftware.com:5000/flow-proto
  28. volumes:
  29. - /var/run/docker.sock:/var/run/docker.sock
  30. - /home/stdio/.docker/config.json:/root/.docker/config.json