mlp-server-tools/.drone.yml

42 lines
881 B
YAML
Raw Normal View History

2019-06-27 12:12:13 +00:00
kind: pipeline
name: default
steps:
2019-06-28 09:04:58 +00:00
- name: test_draftbot
image: golang
commands:
- cd ./draftbot
- GOPROXY=https://modules.fromouter.space go mod download
2019-06-28 14:15:25 +00:00
- CGO_ENABLED=0 go test ./...
2019-06-28 09:04:58 +00:00
2019-06-27 12:12:13 +00:00
- name: build_draftbot
image: golang
commands:
2019-06-27 12:17:23 +00:00
- cd ./draftbot
- GOPROXY=https://modules.fromouter.space go mod download
2019-06-28 14:15:25 +00:00
- CGO_ENABLED=0 go install ./...
2019-06-27 12:12:13 +00:00
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
2019-06-28 09:05:22 +00:00
branch: master
volumes:
- name: gopath
temp: {}