.gitlab-ci.yml 966 Bytes
Newer Older
1
stages:
2
  - Deploy On Testing
3
  - Deploy On LB
4
  - Deploy On ProductionSUSE
5

6
7
Deploy Testing:
  stage: Deploy On Testing
8
9
10
11
  script:
    - pwd
    - source /home/deploy/ansible-provision/ansible-venv/bin/activate
    - cd deploy
12
13
    - ansible-playbook -i hosts playbook-testing.yml
    - echo "Deployed On Testing -> DONE"
14
15
16
17
    - ls -al
    - pwd
  only:
    - master
18

19
20
Deploy LB:
  stage: Deploy On LB
21
22
23
24
  script:
    - pwd
    - source /home/deploy/ansible-provision/ansible-venv/bin/activate
    - cd deploy
25
    - ansible-playbook -i hosts playbook-lb-centos.yml
26
    - echo "Deployed On LB -> DONE"
27
28
    - ls -al
    - pwd
Ioan Vancea's avatar
Ioan Vancea committed
29
30
  only:
    - master
31
  when: manual
32
33
34
35
36
37
38
39
40

Deploy ProductionSUSE:
  stage: Deploy On ProductionSUSE
  script:
    - pwd
    - source /home/deploy/ansible-provision/ansible-venv/bin/activate
    - cd deploy
    - ansible-playbook -i hosts playbook-production-suse.yml
    - echo "Deployed On Production SUSE -> DONE"
41
42
43
    - ls -al
    - pwd
  when: manual