https://github.com/lpreterite/drone-plugin-cq-message
push message by cqhttp in drone plugin
https://github.com/lpreterite/drone-plugin-cq-message
Last synced: 3 months ago
JSON representation
push message by cqhttp in drone plugin
- Host: GitHub
- URL: https://github.com/lpreterite/drone-plugin-cq-message
- Owner: lpreterite
- License: mit
- Created: 2018-12-26T09:26:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-04T03:39:22.000Z (over 6 years ago)
- Last Synced: 2025-01-13T10:11:31.699Z (4 months ago)
- Language: Go
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# drone-plugin-cq-message
push message by cqhttp in drone plugin
## Build
```sh
go build
```## Docker
```sh
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -a -o release/linux/amd64/drone-plugin-cq-message
docker build --rm -t lpreterite/drone-plugin-cq-message .
```## Usage
作为docker容器使用:
```sh
docker run --rm \
-e PLUGIN_CQ_HOST=http://cqhttp \
-e PLUGIN_CQ_ACTION=send_msg \
-e PLUGIN_CQ_TOKEN=kSLuTF2GC2Q4q4ugm3 \
-e PLUGIN_CQ_QUERY='{"group_id": "734751943", "message": "[CQ:at,qq=53421639] hello!!"}' \
-v $(pwd):$(pwd) \
-w $(pwd) \
lpreterite/drone-plugin-cq-message
```作为drone插件使用:
```yml
kind: pipeline
name: defaultsetps:
- name: cq-message
image: lpreterite/drone-plugin-cq-message
pull: always
settings:
cq_host: http://cqhttp
cq_action: send_msg
cq_token:
from_secret: cqtoken
cq_query:
group_id: "734751943"
message: "[CQ:at,qq=53421639] 项目已更新!"
```