add condition for broadcast server
This commit is contained in:
parent
41383e2a47
commit
86002e272b
1 changed files with 12 additions and 14 deletions
|
|
@ -26,18 +26,6 @@ tf-plan-private:
|
||||||
paths:
|
paths:
|
||||||
- plan.tfplan
|
- plan.tfplan
|
||||||
|
|
||||||
tf-plan-public:
|
|
||||||
stage: tf-plan
|
|
||||||
script:
|
|
||||||
- terraform init
|
|
||||||
- terraform plan -out plan.tfplan -var="broadcast_enabled=true"
|
|
||||||
environment:
|
|
||||||
name: Public Jammin
|
|
||||||
url: https://ejam.vereto.net
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- plan.tfplan
|
|
||||||
|
|
||||||
tf-apply-private:
|
tf-apply-private:
|
||||||
stage: tf-apply
|
stage: tf-apply
|
||||||
image:
|
image:
|
||||||
|
|
@ -59,6 +47,18 @@ tf-apply-private:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
tf-plan-public:
|
||||||
|
stage: tf-plan
|
||||||
|
script:
|
||||||
|
- terraform init
|
||||||
|
- terraform plan -out plan.tfplan -var="broadcast_enabled=true"
|
||||||
|
environment:
|
||||||
|
name: Public Jammin
|
||||||
|
url: https://ejam.vereto.net
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- plan.tfplan
|
||||||
|
|
||||||
tf-apply-public:
|
tf-apply-public:
|
||||||
stage: tf-apply
|
stage: tf-apply
|
||||||
image:
|
image:
|
||||||
|
|
@ -91,8 +91,6 @@ tf-destroy:
|
||||||
script:
|
script:
|
||||||
- terraform init
|
- terraform init
|
||||||
- terraform destroy -auto-approve
|
- terraform destroy -auto-approve
|
||||||
dependencies:
|
|
||||||
- tf-plan
|
|
||||||
when: manual
|
when: manual
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue