You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Jay f3e1b37b2d Merge pull request 'develop' (#7) from develop into master 2 weeks ago
cmd/svc fix skip condition 2 weeks ago
contrib/systemd [fix] systemd service 1 month ago
pkg [feat] add cron type job 2 weeks ago
.drone.yml modify drone config 3 weeks ago
.gitignore [feat] add makefile 1 month ago
LICENSE Initial commit 1 month ago
Makefile [feat] remove cgo and add cmd stderr output 1 month ago
README.md [feat] modify readme 2 weeks ago
config.yml.sample add cron setting 3 weeks ago
go.mod [feat] add cron type job 2 weeks ago
go.sum add cron setting 3 weeks ago

README.md

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