format .drone.yml [CI SKIP]

This commit is contained in:
lddsb
2019-02-19 17:37:37 +08:00
parent 74c317b189
commit 20aaaf3454
+24 -25
View File
@@ -7,28 +7,27 @@ workspace:
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:
- master
status:
- success
event:
- push
settings:
repo: lddsb/drone-dingtalk-message
dockerfile: Dockerfile
tags: latest
username:
from_secret: docker_username
password:
from_secret: docker_password
- 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:
- master
status:
- success
event:
- push
settings:
repo: lddsb/drone-dingtalk-message
dockerfile: Dockerfile
tags: latest
username:
from_secret: docker_username
password:
from_secret: docker_password