.gitlab-ci.yml 1.54 KB
Newer Older
1
2
3
stages:
  - build
  - start
4
  - new_ssl
5
6
7
8
9
10
11
12
13
14
15
16
  - stop
  - uninstall
  - remove

build-electrumfairchainsx:
  stage: build
  tags:
    - FairCoin.Co
  only:
    refs:
      - master
    variables:
17
      - $CMD =~ /build|^install/
18
19
20
21
  before_script:
    - export RUNNER_UID=`id -u`
    - export RUNNER_GID=`id -g`
  script:
22
23
    - chmod +x deploy/build.sh && deploy/build.sh

TonyFord's avatar
ts    
TonyFord committed
24
start-electrumfairchainsx:
25
26
27
28
29
30
31
  stage: start
  tags:
    - FairCoin.Co
  only:
    refs:
      - master
    variables:
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
      - $CMD =~ /start|^install/
  before_script:
    - export RUNNER_UID=`id -u`
    - export RUNNER_GID=`id -g`
  script:
    - chmod +x deploy/start.sh && deploy/start.sh

new_ssl-electrumfairchainsx:
  stage: new_ssl
  tags:
    - FairCoin.Co
  only:
    refs:
      - master
    variables:
      - $CMD =~ /new_ssl|^install/
48
49
50
51
  before_script:
    - export RUNNER_UID=`id -u`
    - export RUNNER_GID=`id -g`
  script:
52
    - chmod +x deploy/new_ssl.sh && deploy/new_ssl.sh
53
54
55
56
57
58
59
60
61
62
63

stop-electrumfairchainsx:
  stage: stop
  tags:
    - FairCoin.Co
  only:
    refs:
      - master
    variables:
      - $CMD =~ /stop/
  script:
64
    - chmod +x deploy/stop.sh && deploy/stop.sh
65
66
67
68
69
70
71
72
73
74
75

uninstall-electrumfairchainsx:
  stage: uninstall
  tags:
    - FairCoin.Co
  only:
    refs:
      - master
    variables:
      - $CMD =~ /uninstall/
  script:
76
    - chmod +x deploy/uninstall.sh && deploy/uninstall.sh
77
78
79
80
81
82
83
84
85
86
87

remove-electrumfairchainsx:
  stage: remove
  tags:
    - FairCoin.Co
  only:
    refs:
      - master
    variables:
      - $CMD =~ /remove/
  script:
88
    - chmod +x deploy/remove.sh && deploy/remove.sh