scrabblego/.drone.yml

30 lines
532 B
YAML

kind: pipeline
name: default
steps:
- name: test
image: golang
commands:
- CGO_ENABLED=0 go test -v ./...
volumes:
- name: gopath
path: /go
- name: publish
image: plugins/docker
settings:
auto_tag: true
registry:
from_secret: docker_registry
repo:
from_secret: docker_repo
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event:
- push
- tag
branch: master