mirror of
https://github.com/lddsb/drone-dingtalk-message.git
synced 2026-06-04 18:33:48 +08:00
Use exec instead of Docker for execution
This commit is contained in:
@@ -39,6 +39,25 @@ steps:
|
||||
debug: true
|
||||
```
|
||||
|
||||
`Use the "exec" type`
|
||||
```yaml
|
||||
kind: pipeline
|
||||
type: exec
|
||||
|
||||
steps:
|
||||
...
|
||||
|
||||
- name: notification
|
||||
environment: # Using environment to pass parameters
|
||||
PLUGIN_TOKEN:
|
||||
from_secret: dingtalk_token
|
||||
PLUGIN_TYPE: markdown
|
||||
PLUGIN_DEBUG: false
|
||||
PLUGIN_TPL: /data/drone/dingtalk/tpls/markdown.tpl # The actual location (absolute path) of the tpl.
|
||||
commands:
|
||||
- /data/drone/dingtalk/dingtalk-message # Location of the "dingtalk-message" file (absolute path)
|
||||
```
|
||||
|
||||
### Plugin Parameter Reference
|
||||
`token`(required)
|
||||
|
||||
|
||||
@@ -40,6 +40,25 @@ steps:
|
||||
debug: true
|
||||
```
|
||||
|
||||
`命令行版本`
|
||||
```yaml
|
||||
kind: pipeline
|
||||
type: exec
|
||||
|
||||
steps:
|
||||
...
|
||||
|
||||
- name: 通知
|
||||
environment: # 使用 environment 传递参数
|
||||
PLUGIN_TOKEN:
|
||||
from_secret: dingtalk_token
|
||||
PLUGIN_TYPE: markdown
|
||||
PLUGIN_DEBUG: false
|
||||
PLUGIN_TPL: /data/drone/dingtalk/tpls/markdown.tpl # tpl 的实际位置(绝对路径)
|
||||
commands:
|
||||
- /data/drone/dingtalk/dingtalk-message # dingtalk-message 文件的位置(绝对路径)
|
||||
```
|
||||
|
||||
### 插件参数
|
||||
`token`(必须)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user