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.

30 lines
1.2 KiB

7 years ago
7 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 /output/rpdata-graphiql ./cmd/rpdata-graphiql
  16. - go build -a -installsuffix cgo -ldflags="-s -w" -o /output/rpdata-lb2charimport ./cmd/rpdata-lb2charimport
  17. - go build -a -installsuffix cgo -ldflags="-s -w" -o /output/rpdata-lb2logimport ./cmd/rpdata-lb2logimport
  18. - go build -a -installsuffix cgo -ldflags="-s -w" -o /output/rpdata-wikifileimport ./cmd/rpdata-wikifileimport
  19. - go build -a -installsuffix cgo -ldflags="-s -w" -o /output/rpdata-ensurechannels ./cmd/rpdata-ensurechannels
  20. - go build -a -installsuffix cgo -ldflags="-s -w" -o /output/rpdata-as2storyimport ./cmd/rpdata-as2storyimport
  21. s3:
  22. image: plugins/s3-sync
  23. bucket: aiterp
  24. region: ams3
  25. source: /output/*
  26. target: /build/rpdata/
  27. endpoint: https://ams3.digitaloceanspaces.com
  28. secret_key: $space_secret_key
  29. access_key: $space_access_key
  30. acl: public-read