Go to file
Jay cf1ad2ed4b
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Merge pull request 'fix skip condition' (#6) from feature/fix-watch into develop
Reviewed-on: #6
2021-07-07 16:22:05 +00:00
cmd/svc fix skip condition 2021-07-08 00:21:40 +08:00
contrib/systemd [fix] systemd service 2021-06-15 00:20:36 +08:00
pkg [feat] add cron type job 2021-07-07 23:51:10 +08:00
.drone.yml modify drone config 2021-07-02 10:33:33 +08:00
.gitignore [feat] add makefile 2021-06-13 23:08:34 +08:00
config.yml.sample add cron setting 2021-07-02 17:00:18 +08:00
go.mod [feat] add cron type job 2021-07-07 23:51:10 +08:00
go.sum add cron setting 2021-07-02 17:00:18 +08:00
LICENSE Initial commit 2021-06-13 11:36:49 +00:00
Makefile [feat] remove cgo and add cmd stderr output 2021-06-14 22:58:39 +08:00
README.md [feat] modify readme 2021-07-07 23:53:43 +08:00

auto-deploy-service

Config struct

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