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
|
- 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}}
|
Loading…
Reference in New Issue
Block a user