mlpcardbot/.drone.yml
2019-08-26 12:39:30 +02:00

33 lines
614 B
YAML

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