Browse Source

Parallelized build, another scp fix attempt

1.0
Gisle Aune 7 years ago
parent
commit
1435074a29
  1. 36
      .drone.yml

36
.drone.yml

@ -3,7 +3,7 @@ workspace:
path: src/git.aiterp.net/rpdata/api path: src/git.aiterp.net/rpdata/api
pipeline: pipeline:
build:
prepare:
environment: environment:
- CGO_ENABLED=0 - CGO_ENABLED=0
image: golang:1.10 image: golang:1.10
@ -13,16 +13,46 @@ pipeline:
- dep ensure - dep ensure
- go generate ./... - go generate ./...
- mkdir /output - mkdir /output
build-graphiql:
group: binaries
environment:
- CGO_ENABLED=0
image: golang:1.10
- 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-graphiql ./cmd/rpdata-graphiql
build-lb2charimport:
group: binaries
environment:
- CGO_ENABLED=0
image: golang:1.10
- 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-lb2charimport ./cmd/rpdata-lb2charimport
build-lb2logimport:
group: binaries
environment:
- CGO_ENABLED=0
image: golang:1.10
- 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-lb2logimport ./cmd/rpdata-lb2logimport
build-wikifileimport:
group: binaries
environment:
- CGO_ENABLED=0
image: golang:1.10
- 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-wikifileimport ./cmd/rpdata-wikifileimport
build-ensurechannels:
group: binaries
environment:
- CGO_ENABLED=0
image: golang:1.10
- 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-ensurechannels ./cmd/rpdata-ensurechannels
build-as2storyimport:
group: binaries
environment:
- CGO_ENABLED=0
image: golang:1.10
- go build -a -installsuffix cgo -ldflags="-s -w" -o /go/output/rpdata-as2storyimport ./cmd/rpdata-as2storyimport - go build -a -installsuffix cgo -ldflags="-s -w" -o /go/output/rpdata-as2storyimport ./cmd/rpdata-as2storyimport
scp:
deploy-scp:
image: appleboy/drone-scp image: appleboy/drone-scp
host: 10.32.0.2 host: 10.32.0.2
username: artifacts username: artifacts
secrets: [ ssh_key ] secrets: [ ssh_key ]
source: /go/output/* source: /go/output/*
target: /home/artifacts/store/rpdata/$COMMIT
target: /home/artifacts/store/rpdata/${COMMIT}
Loading…
Cancel
Save