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:
|
||||
- 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:
|
||||
stage: tf-apply
|
||||
image:
|
||||
|
|
@ -59,6 +47,18 @@ tf-apply-private:
|
|||
only:
|
||||
- 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:
|
||||
stage: tf-apply
|
||||
image:
|
||||
|
|
@ -91,8 +91,6 @@ tf-destroy:
|
|||
script:
|
||||
- terraform init
|
||||
- terraform destroy -auto-approve
|
||||
dependencies:
|
||||
- tf-plan
|
||||
when: manual
|
||||
only:
|
||||
- master
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue