mirror of
https://github.com/lddsb/drone-dingtalk-message.git
synced 2026-06-04 18:33:48 +08:00
add drone auto build
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: default
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: golang:alpine
|
||||
commands:
|
||||
- CGO_ENABLED=0 GOOS=linux go build -a -o drone-dingtalk-message .
|
||||
- ./drone-dingtalk-message
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user