GraphQL API and utilities for the rpdata project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.2 KiB

6 years ago
6 years ago
  1. workspace:
  2. base: /go
  3. path: src/git.aiterp.net/rpdata/api
  4. pipeline:
  5. build:
  6. environment:
  7. - CGO_ENABLED=0
  8. image: golang:1.10
  9. commands:
  10. - go get -u github.com/golang/dep/cmd/dep
  11. - go get -u github.com/jteeuwen/go-bindata/...
  12. - dep ensure
  13. - go generate ./...
  14. - mkdir /output
  15. - go build -a -installsuffix cgo -ldflags="-s -w" -o /go/output/rpdata-graphiql ./cmd/rpdata-graphiql
  16. - go build -a -installsuffix cgo -ldflags="-s -w" -o /go/output/rpdata-lb2charimport ./cmd/rpdata-lb2charimport
  17. - go build -a -installsuffix cgo -ldflags="-s -w" -o /go/output/rpdata-lb2logimport ./cmd/rpdata-lb2logimport
  18. - go build -a -installsuffix cgo -ldflags="-s -w" -o /go/output/rpdata-wikifileimport ./cmd/rpdata-wikifileimport
  19. - go build -a -installsuffix cgo -ldflags="-s -w" -o /go/output/rpdata-ensurechannels ./cmd/rpdata-ensurechannels
  20. - go build -a -installsuffix cgo -ldflags="-s -w" -o /go/output/rpdata-as2storyimport ./cmd/rpdata-as2storyimport
  21. scp:
  22. image: appleboy/drone-scp
  23. ssh_username: artifacts
  24. ssh_key: $$ssh_key
  25. host: example.com
  26. source: /go/output/*
  27. target: /home/artifacts/store/rpdata/