auto-deploy-service/README.md
Jay 3004d0837d
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
[feat] modify readme
2021-07-07 23:53:43 +08:00

26 lines
541 B
Markdown

# auto-deploy-service
## Config struct
```yaml
server:
port: 10230 # server listen port
listens:
- http:
method: get # http method only support get and post
path: /test # http register path
headers: # header check map[string]string
x-validate-key: '123'
script: /tmp/run.sh # script location required execute permission
- http:
method: post
path: /test-post
headers: {}
script: /tmp/run.sh
# cron job setting
cron_jobs:
- cron_time: '* * * * *'
script: /tmp/run.sh
```