add condition for broadcast server

This commit is contained in:
spengreb 2023-01-23 21:16:34 +01:00
parent 41383e2a47
commit 86002e272b

View file

@ -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