workspace: base: /go path: src/git.aiterp.net/rpdata/api pipeline: build: 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 - go build -a -installsuffix cgo -ldflags="-s -w" -o /go/output/rpdata-graphiql ./cmd/rpdata-graphiql - go build -a -installsuffix cgo -ldflags="-s -w" -o /go/output/rpdata-lb2charimport ./cmd/rpdata-lb2charimport - go build -a -installsuffix cgo -ldflags="-s -w" -o /go/output/rpdata-lb2logimport ./cmd/rpdata-lb2logimport - go build -a -installsuffix cgo -ldflags="-s -w" -o /go/output/rpdata-wikifileimport ./cmd/rpdata-wikifileimport - go build -a -installsuffix cgo -ldflags="-s -w" -o /go/output/rpdata-ensurechannels ./cmd/rpdata-ensurechannels - go build -a -installsuffix cgo -ldflags="-s -w" -o /go/output/rpdata-as2storyimport ./cmd/rpdata-as2storyimport scp: image: appleboy/drone-scp host: 10.32.0.2 username: artifacts secrets: [ ssh_key ] source: /go/output/* target: /home/artifacts/store/rpdata/