Files
2019-02-07 10:42:01 +08:00

35 lines
630 B
YAML

---
kind: pipeline
name: default
workspace:
base: /go
path: src/github.com/lddsb/drone-dingtalk-message
steps:
- name: build
image: golang
commands:
- go get -u github.com/golang/dep/cmd/dep
- dep ensure
- CGO_ENABLED=0 GOOS=linux go build -a -o drone-dingtalk-message .
- ./drone-dingtalk-message -h
- name: publish
image: plugins/docker
when:
branch:
- beta
status:
- success
event:
- push
settings:
repo: lddsb/drone-dingtalk-message
dockerfile: Dockerfile
tags: beta
username:
from_secret: docker_username
password:
from_secret: docker_password