dissertation-2-code/.drone.yml
Jake Hillion 536c6bdc88
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
only build to push
2020-11-04 20:26:38 +00:00

51 lines
934 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: install
image: golang:1.15
environment:
GOPROXY: http://10.20.0.25:3142|direct
volumes:
- name: cache
path: /go
commands:
- go test -i ./...
- name: test
image: golang:1.15
volumes:
- name: cache
path: /go
commands:
- go test ./...
- name: build (debian)
image: golang:1.15-buster
when:
event:
- push
volumes:
- name: cache
path: /go
commands:
- go build
- name: upload
image: minio/mc
when:
event:
- push
environment:
ACCESS_KEY: 001f185da4dcda3000000000d
SECRET_KEY:
from_secret: s3_secret_key
commands:
- mc alias set s3 http://10.20.0.25:3900 $${ACCESS_KEY} $${SECRET_KEY}
- mc cp mpbl3p s3/dissertation/binaries/debian/${DRONE_BRANCH}
volumes:
- name: cache
temp: {}