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.

34 lines
1.3 KiB

7 years ago
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. test-content:
  22. image: alpine
  23. commands:
  24. - ls -l /output/
  25. s3:
  26. image: plugins/s3
  27. bucket: aiterp
  28. region: ams3
  29. source: /output/*
  30. target: /build/rpdata/
  31. endpoint: https://ams3.digitaloceanspaces.com
  32. secret_key: $${space_secret_key}
  33. access_key: $${space_access_key}
  34. acl: public-read