.gitlab-ci.yml 668 Bytes
Newer Older
1
stages:
2 3
  - Deployment staging
  - Deployment production
4

5 6
Staging:
  stage: Deployment staging
7 8 9 10
  script:
    - pwd
    - source /home/deploy/ansible-provision/ansible-venv/bin/activate
    - cd deploy
11 12
    - ansible-playbook -i hosts playbook-staging.yml
    - echo "Deployed on enc-staging-nomad machine -> DONE"
13 14
    - ls -al
    - pwd
15

16 17
Production:
  stage: Deployment production
18 19 20 21
  script:
    - pwd
    - source /home/deploy/ansible-provision/ansible-venv/bin/activate
    - cd deploy
22 23
    - ansible-playbook -i hosts playbook-production.yml
    - echo "Deployed on production (enc-lb-nomad) machine -> DONE"
24 25
    - ls -al
    - pwd
Ioan Vancea's avatar
Ioan Vancea committed
26 27
  only:
    - master
28
  when: manual