测试电报通知使用判断
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
李寻欢 2020-01-07 10:43:57 +08:00
parent 217f59a75b
commit 2b0d6565c5

View File

@ -8,7 +8,7 @@ steps:
- go get -u github.com/golangci/golangci-lint/cmd/golangci-lint - go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
- golangci-lint run - golangci-lint run
- name: 编译x86_64平台二进制文件 - name: 编译二进制文件
image: golang:latest image: golang:latest
environment: environment:
GOOS: linux GOOS: linux
@ -25,9 +25,7 @@ steps:
use_cache: true use_cache: true
username: docker username: docker
password: dockeruser password: dockeruser
tags: auto_tag: true
- latest
- 0.0.1
when: when:
event: push event: push
branch: master branch: master
@ -37,4 +35,9 @@ steps:
settings: settings:
token: 883905265:AAFv3NAH4ykdh2m_XiQUuyKNJ9XE5RV7ukU token: 883905265:AAFv3NAH4ykdh2m_XiQUuyKNJ9XE5RV7ukU
to: 365042238 to: 365042238
message: 项目构建成功 message: >
{{#success build.status}}
编号:{{build.number}} 构建成功。
{{else}}
编号:{{build.number}} 构建失败。
{{/success}}