https://github.com/sunhao-java/blog-webhooks
博客的钩子服务
https://github.com/sunhao-java/blog-webhooks
Last synced: about 1 year ago
JSON representation
博客的钩子服务
- Host: GitHub
- URL: https://github.com/sunhao-java/blog-webhooks
- Owner: sunhao-java
- Created: 2020-04-15T11:35:42.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T09:21:46.000Z (over 3 years ago)
- Last Synced: 2025-02-10T01:43:33.240Z (over 1 year ago)
- Language: JavaScript
- Size: 58.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# blog-webhooks
1. docker build
docker build -t blog-webhooks .
2. 配置.env文件
# 钉钉机器人token
DING_TOKEN=xxx
3. 修改`docker-compose.yml`
3. 运行
docker-compose up -d
4. gitlab配置
- 打开每一个需要自动构建发布工程的gitlab页面
- `settings` -> `integrations`
- `add webhooks`
- url: `http://ip:port/publish?type=[hexo|gitbook]`
- event: Push Event