-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.gitlab-ci.yml
34 lines (31 loc) · 1.1 KB
/
.gitlab-ci.yml
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
stages:
- create-enterprise-instances
- provision-enterprise-instances
# - destroy-enterprise-instances
create-enterprise-instances-code-job:
stage: create-enterprise-instances
script:
- cd /home/local/automated-devops
- source venv/bin/activate
- cd /home/local/automated-devops/Enterprise_Instance_Templates
- ansible-playbook -i enterprise_instance_inventory create_enterprise_instances.yml
tags:
- ci
provision-enterprise-instances-code-job:
stage: provision-enterprise-instances
script:
- cd /home/local/automated-devops
- source venv/bin/activate
- cd /home/local/automated-devops/Enterprise_Instance_Templates
- ansible-playbook -i enterprise_instance_inventory provision_enterprise_instances.yml
tags:
- ci
# destroy-enterprise-instances-code-job:
# stage: destroy-enterprise-instances
# script:
# - cd /home/local/automated-devops
# - source venv/bin/activate
# - cd /home/local/automated-devops/Enterprise_Instance_Templates
# - ansible-playbook -i enterprise_instance_inventory destroy_enterprise_instances.yml
# tags:
# - ci