|
@ -3,55 +3,9 @@ workspace: |
|
|
path: src/git.aiterp.net/rpdata/api |
|
|
path: src/git.aiterp.net/rpdata/api |
|
|
|
|
|
|
|
|
pipeline: |
|
|
pipeline: |
|
|
prepare: |
|
|
|
|
|
environment: |
|
|
|
|
|
- CGO_ENABLED=0 |
|
|
|
|
|
image: golang:1.10 |
|
|
|
|
|
commands: |
|
|
|
|
|
- go get -u github.com/golang/dep/cmd/dep |
|
|
|
|
|
- go get -u github.com/jteeuwen/go-bindata/... |
|
|
|
|
|
- dep ensure |
|
|
|
|
|
- go generate ./... |
|
|
|
|
|
- mkdir /output |
|
|
|
|
|
build-graphiql: |
|
|
|
|
|
group: binaries |
|
|
|
|
|
environment: |
|
|
|
|
|
- CGO_ENABLED=0 |
|
|
|
|
|
image: golang:1.10 |
|
|
|
|
|
commands: |
|
|
|
|
|
- go build -a -installsuffix cgo -ldflags="-s -w" -o /go/output/rpdata-graphiql ./cmd/rpdata-graphiql |
|
|
|
|
|
build-lb2charimport: |
|
|
|
|
|
group: binaries |
|
|
|
|
|
environment: |
|
|
|
|
|
- CGO_ENABLED=0 |
|
|
|
|
|
image: golang:1.10 |
|
|
|
|
|
commands: |
|
|
|
|
|
- go build -a -installsuffix cgo -ldflags="-s -w" -o /go/output/rpdata-lb2charimport ./cmd/rpdata-lb2charimport |
|
|
|
|
|
build-lb2logimport: |
|
|
|
|
|
group: binaries |
|
|
|
|
|
environment: |
|
|
|
|
|
- CGO_ENABLED=0 |
|
|
|
|
|
image: golang:1.10 |
|
|
|
|
|
commands: |
|
|
|
|
|
- go build -a -installsuffix cgo -ldflags="-s -w" -o /go/output/rpdata-lb2logimport ./cmd/rpdata-lb2logimport |
|
|
|
|
|
build-wikifileimport: |
|
|
|
|
|
group: binaries |
|
|
|
|
|
environment: |
|
|
|
|
|
- CGO_ENABLED=0 |
|
|
|
|
|
image: golang:1.10 |
|
|
|
|
|
commands: |
|
|
|
|
|
- go build -a -installsuffix cgo -ldflags="-s -w" -o /go/output/rpdata-wikifileimport ./cmd/rpdata-wikifileimport |
|
|
|
|
|
build-ensurechannels: |
|
|
|
|
|
group: binaries |
|
|
|
|
|
environment: |
|
|
|
|
|
- CGO_ENABLED=0 |
|
|
|
|
|
image: golang:1.10 |
|
|
|
|
|
commands: |
|
|
|
|
|
- go build -a -installsuffix cgo -ldflags="-s -w" -o /go/output/rpdata-ensurechannels ./cmd/rpdata-ensurechannels |
|
|
|
|
|
build-as2storyimport: |
|
|
|
|
|
group: binaries |
|
|
|
|
|
environment: |
|
|
|
|
|
- CGO_ENABLED=0 |
|
|
|
|
|
image: golang:1.10 |
|
|
|
|
|
commands: |
|
|
|
|
|
- go build -a -installsuffix cgo -ldflags="-s -w" -o /go/output/rpdata-as2storyimport ./cmd/rpdata-as2storyimport |
|
|
|
|
|
|
|
|
docker: |
|
|
|
|
|
image: plugins/docker |
|
|
|
|
|
repo: vmaple/rpdata |
|
|
|
|
|
tags: latest |
|
|
|
|
|
auto_tag: true |
|
|
|
|
|
secrets: [ docker_username, docker_password ] |