mlp-server-tools/.drone.yml
Hamcha 4a521f595d
Some checks reported errors
continuous-integration/drone/push Build was killed
Add testing and fix tons of bugs
2019-06-28 16:15:25 +02:00

42 lines
No EOL
881 B
YAML

kind: pipeline
name: default
steps:
- name: test_draftbot
image: golang
commands:
- cd ./draftbot
- GOPROXY=https://modules.fromouter.space go mod download
- CGO_ENABLED=0 go test ./...
- name: build_draftbot
image: golang
commands:
- cd ./draftbot
- GOPROXY=https://modules.fromouter.space go mod download
- CGO_ENABLED=0 go install ./...
volumes:
- name: gopath
path: /go
- name: publish_draftbot
image: plugins/docker
settings:
auto_tag: true
dockerfile: Dockerfile.publish
build_args: MODULE_PATH=draftbot
repo: hamcha/draftbot
target: final
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event:
- push
- tag
branch: master
volumes:
- name: gopath
temp: {}