.gitlab-ci.yml 1.31 KB
Newer Older
TonyFord's avatar
TonyFord committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
stages:
  - build
  - start
  - stop
  - uninstall

build-jekyll:
  stage: build
  tags:
    - FairCoin.Co
  only:
    refs:
      - master
    variables:
      - $CMD =~ /build/
  before_script:
    - export RUNNER_UID=`id -u`
    - export RUNNER_GID=`id -g`
19
    - chmod +x ./setenv.sh
TonyFord's avatar
TonyFord committed
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  script:
    - docker-compose down
    - docker-compose build

start-jekyll:
  stage: start
  tags:
    - FairCoin.Co
  only:
    refs:
      - master
    variables:
      - $CMD =~ /build|start/
  before_script:
    - export RUNNER_UID=`id -u`
    - export RUNNER_GID=`id -g`
tonyford's avatar
tonyford committed
36
37
38
39
40
41
    - chmod +x ./setenv.sh
    - source ${ELECTRUMFAIR_CONF}
    - export erpcuser=${rpcuser}
    - export erpcpassword=${rpcpassword}
    - export erpcport=${rpcport}
    - source ${FAIRCOIN_CONF}
tonyford's avatar
ts    
tonyford committed
42
43
44
    - export rpcuser=${rpcuser}
    - export rpcpassword=${rpcpassword}
    - export rpcport=${rpcport}
TonyFord's avatar
TonyFord committed
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
  script:
    - docker-compose stop
    - docker-compose up -d

stop-jekyll:
  stage: stop
  tags:
    - FairCoin.Co
  only:
    refs:
      - master
    variables:
      - $CMD =~ /stop/
  script:
    - docker-compose stop

uninstall-jekyll:
  stage: uninstall
  tags:
    - FairCoin.Co
  only:
    refs:
      - master
    variables:
      - $CMD =~ /uninstall/
tonyford's avatar
tonyford committed
70
71
  before_script:
    - chmod +x ./setenv.sh
TonyFord's avatar
TonyFord committed
72
73
74
  script:
    - docker-compose stop
    - docker-compose down