-
Notifications
You must be signed in to change notification settings - Fork 1
/
.drone.yml
52 lines (52 loc) · 972 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
kind: pipeline
type: docker
name: release
steps:
- name: build and push image
image: plugins/docker
settings:
repo: cruii/drone-feishu
dockerfile: Dockerfile
tags:
- latest
- ${DRONE_TAG}
username:
from_secret: docker_username
password:
from_secret: docker_password
trigger:
event:
- tag
---
kind: pipeline
type: docker
name: build
steps:
- name: build
image: golang:1.21-alpine
commands:
- GO111MODULE=on CGO_ENABLED=0 GOOS=linux go build -a -o drone-feishu .
- name: notification
image: cruii/drone-feishu
pull: always
settings:
user_id:
from_secret: user_id
chat_id:
from_secret: chat_id
app_id:
from_secret: app_id
app_secret:
from_secret: app_secret
when:
status:
- success
- failure
trigger:
event:
include:
- push
- pull_request
branch:
- main
- dev