summaryrefslogtreecommitdiffstats
path: root/config.json.sample
blob: 959fe70dc9e3bdca47df00bb57c33f146c887158 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
  // HTTP server options
  //"http-enabled": true,
  //"http-host": "0.0.0.0",
  //"http-port": 8001,

  // HTTPS server options
  //"https-enabled": false,
  //"https-host": "0.0.0.0",
  //"https-port": 8002,

  // Web socket server options (used by web UI for real time updates)
  //"wss-enabled": false,
  //"wss-host": "0.0.0.0",
  //"wss-port": 8003,

  // Web user interface options
  //"web-ui-enabled": false,
  //"web-ui-username": null,
  //"web-ui-password": null,
  //"web-ui-whitelist": ["127.0.0.1"],

  // TLS/SSL cert (necessary for HTTPS and web socket server to work)
  //"ssl-key": null,  // If specified, holds the private key
  //"ssl-cert": "cert.pem",  // Holds the public key or both the private and public keys

  // File to store a copy of the console output
  "log-file": "~/gitautodeploy.log",

  // File to store the process id (pid)
  "pid-file": "~/.gitautodeploy.pid",

  // Record all log levels by default
  "log-level": "INFO",

  // Deploy commands that should be executed for all projects
  //"global_deploy": [
  //  "echo Deploy started!",
  //  "echo Deploy completed!"
  //],

  "repositories": [
    {
      "url": "https://github.com/olipo186/Git-Auto-Deploy.git",
      "branch": "master",
      "remote": "origin",
      "path": "~/repositories/Git-Auto-Deploy",
      "deploy": "echo deploying"
    },
    {
      "url": "https://github.com/github/gitignore",
      "path": "~/repositories/gitignore"
    },
    {
      "url": "git@gitlab.com:gitlab-org/gitlab-ce.git",
      "path": "~/repositories/gitignore"
    },
    {
      "url": "https://api.github.com/repos/olipo186/Git-Auto-Deploy",
      "deploy": "echo deploying after pull request",
      "filters": [
        {
          "type": "pull-request-filter",
          "action": "closed",
          "ref": "testing-branch"
        }
      ]
    }
  ]
}