summaryrefslogtreecommitdiffstats
path: root/acid/config.sh
blob: a25531ed35637112ede98ddd88301ef27dfa5195 (plain) (blame)
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
# Minimum time to wait between periodic service rebuilds / maintenance tasks
CYCHE_MAINT_TIME=604800 # 1 week

# Minimum time to wait between polling sources for updates
CYCHE_POLL_TIME=600 # 10 minutes

# Minimum time to wait between executing individual jobs
CYCHE_JOB_TIME=10 # 10 seconds

# Minimum time to wait on daemon startup
CYCHE_STARTUP_TIME=60 # 1 minute

# Maximum number of latest build logs to retain during cleanup
CYCHE_LOG_SIZE=100

# Master list of managed services
CYCHE_SERVICES=(
    # <ref-pattern> should be a string suitable for `git for-each-ref`.  Some
    # basic use-cases might be to:
    #
    #   Deploy from                 Use
    #   -------------------------------------------------------------
    #   A branch                    refs/remotes/origin/<branch-name>
    #   A tag (static)              refs/tags/<tag-name>
    #   Latest tag                  refs/tags
    #   Latest tag matching glob    refs/tags/<shell-*-wildcard>
    #
    # <name> is arbitrary, but must be unique.  It is used to name various
    # docker entities and must contain only "a-z", "0-9", dashes, or underscores.

    # The source used to fetch updates for cychedelic itself should be the first
    # in the list.  As just mentioned, it can be named anything, but "cychedelic"
    # is conventional.

    # <name>            <url>                                                       <ref-pattern>                               <compose-file>
    'cychedelic         https://your/cyche/source.git                               refs/remotes/origin/master                  docker-compose.yml'
)