test-ci
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
c0b03f855f
commit
dcea7c55f7
37
.drone.yml
37
.drone.yml
|
@ -1,11 +1,12 @@
|
|||
kind: pipeline # 定义一个管道
|
||||
type: docker # 当前管道的类型
|
||||
name: "中文流水线" # 当前管道的名称
|
||||
steps: # 定义管道的执行步骤
|
||||
- name: "中文STEP" # 步骤名称
|
||||
image: node:latest # 当前步骤使用的镜像
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: "中文流水线"
|
||||
|
||||
steps:
|
||||
- name: "中文STEP"
|
||||
image: node:latest
|
||||
pull: if-not-exists
|
||||
commands: # 当前步骤执行的命令
|
||||
commands:
|
||||
- echo "********************"
|
||||
- date
|
||||
- whoami
|
||||
|
@ -23,7 +24,7 @@ steps: # 定义管道的执行步骤
|
|||
- python ./python/hello.py
|
||||
|
||||
|
||||
- name: "测试微信推送"
|
||||
- name: "CI失败 微信推送"
|
||||
# https://plugins.drone.io/plugins/wechat-2
|
||||
image: clem109/drone-wechat
|
||||
pull: if-not-exists
|
||||
|
@ -41,4 +42,22 @@ steps: # 定义管道的执行步骤
|
|||
when:
|
||||
status:
|
||||
- failure
|
||||
# - success
|
||||
|
||||
- name: "CI通过 微信推送"
|
||||
# https://plugins.drone.io/plugins/wechat-2
|
||||
image: clem109/drone-wechat
|
||||
pull: if-not-exists
|
||||
settings:
|
||||
corpid:
|
||||
from_secret: wechat_corp_id
|
||||
corp_secret:
|
||||
from_secret: wechat_corp_secret
|
||||
agent_id:
|
||||
from_secret: wechat_agent_id
|
||||
title: ${DRONE_REPO_NAME}
|
||||
description: "Build Number: ${DRONE_BUILD_NUMBER} success! ${DRONE_COMMIT_AUTHOR} CI pass!"
|
||||
msg_url: ${DRONE_BUILD_LINK}
|
||||
btn_txt: btn
|
||||
when:
|
||||
status:
|
||||
- success
|
||||
|
|
Loading…
Reference in New Issue