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
878 B
34 lines
878 B
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 /output/${CMD} ./cmd/${CMD}
|
|
s3:
|
|
image: plugins/s3
|
|
bucket: aiterp
|
|
source: /output/*
|
|
target: /build/rpdata/${DRONE_BUILD_NUMBER}-${DRONE_COMMIT}
|
|
path_style: true
|
|
endpoint: https://ams3.digitaloceanspaces.com
|
|
secret_key: $SPACE_SECRET_KEY
|
|
access_key: $SPACE_ACCESS_KEY
|
|
acl: public-read
|
|
matrix:
|
|
CMD:
|
|
- rpdata-graphiql
|
|
- rpdata-lb2charimport
|
|
- rpdata-lb2logimport
|
|
- rpdata-wikifileimport
|
|
- rpdata-ensurechannels
|
|
- rpdata-as2storyimport
|