1234567891011121314151617181920212223242526272829303132 |
- workspace:
- base: /app
- path: .
- pipeline:
- backend:
- image: golang
- environment:
- - GOPATH=/app/go/deps:/app/go
- commands:
- - go get -d ./go/src/...
- - go get -d -t ./go/src/...
- - go test ./go/src/...
- - CGO_ENABLED=0 go build -o DIST/flowserver flowserver/cmd/flowserver
- frontend:
- image: node:6
- commands:
- - cd browser/vue-flow
- - yarn
- - yarn build
- deploy:
- image: docker
- 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
|