This commit is contained in:
parent
217f59a75b
commit
2b0d6565c5
13
.drone.yml
13
.drone.yml
@ -8,7 +8,7 @@ steps:
|
||||
- go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
|
||||
- golangci-lint run
|
||||
|
||||
- name: 编译x86_64平台二进制文件
|
||||
- name: 编译二进制文件
|
||||
image: golang:latest
|
||||
environment:
|
||||
GOOS: linux
|
||||
@ -25,9 +25,7 @@ steps:
|
||||
use_cache: true
|
||||
username: docker
|
||||
password: dockeruser
|
||||
tags:
|
||||
- latest
|
||||
- 0.0.1
|
||||
auto_tag: true
|
||||
when:
|
||||
event: push
|
||||
branch: master
|
||||
@ -37,4 +35,9 @@ steps:
|
||||
settings:
|
||||
token: 883905265:AAFv3NAH4ykdh2m_XiQUuyKNJ9XE5RV7ukU
|
||||
to: 365042238
|
||||
message: 项目构建成功
|
||||
message: >
|
||||
{{#success build.status}}
|
||||
编号:{{build.number}} 构建成功。
|
||||
{{else}}
|
||||
编号:{{build.number}} 构建失败。
|
||||
{{/success}}
|
Loading…
Reference in New Issue
Block a user