@@ -30,49 +30,3 @@ workflow:
3030 - if : ' $CI_PIPELINE_SOURCE == "merge_request_event"'
3131 when : never
3232 - when : always
33-
34- plan_main :
35- extends : .tf_setup
36- stage : deploy
37- only :
38- - /^main_v.*/
39- script :
40- - (echo -n "$V3_PK" > terraform/modules/tor/v3.pk)
41- - (echo -n "$V3_PUBK" > terraform/modules/tor/v3.pubk)
42- - (cd terraform && terraform init -input=false &&
43- terraform workspace select main &&
44- terraform init -input=false &&
45- terraform plan
46- -var "prometheus_allowed_source_ip=$PROMETHEUS_ALLOWED_SOURCE_IP"
47- -var "hosts=$HOSTS"
48- -var "hosts_onion=$HOSTS_ONION"
49- -var "cluster_size=$NODE_CLUSTER_SIZE"
50- -var "instance_type=$NODE_INSTANCE_TYPE"
51- -var "regions=$REGIONS"
52- -var "zones=$ZONES"
53- -var "ssl_certs=$SSL_CERTS"
54- -var "image_source_project=$IMAGE_SOURCE_PROJECT"
55- -input=false)
56-
57- deploy_main :
58- extends : .tf_setup
59- when : manual
60- only :
61- - /^main_v.*/
62- script :
63- - (echo -n "$V3_PK" > terraform/modules/tor/v3.pk)
64- - (echo -n "$V3_PUBK" > terraform/modules/tor/v3.pubk)
65- - (cd terraform && terraform init -input=false &&
66- terraform workspace select main &&
67- terraform init -input=false &&
68- terraform apply
69- -var "prometheus_allowed_source_ip=$PROMETHEUS_ALLOWED_SOURCE_IP"
70- -var "hosts=$HOSTS"
71- -var "hosts_onion=$HOSTS_ONION"
72- -var "cluster_size=$NODE_CLUSTER_SIZE"
73- -var "instance_type=$NODE_INSTANCE_TYPE"
74- -var "regions=$REGIONS"
75- -var "zones=$ZONES"
76- -var "ssl_certs=$SSL_CERTS"
77- -var "image_source_project=$IMAGE_SOURCE_PROJECT"
78- -input=false -auto-approve)
0 commit comments