ScuffleTV / scuffle

Live streaming platform
https://scuffle.tv
233 stars 26 forks source link

Terraform Deployment #73

Closed TroyKomodo closed 1 year ago

TroyKomodo commented 1 year ago

Proposed changes

Added auto deploy using terraform. Terraform is a tool used to handle infrastructure state. We have our server infra state stored in https://github.com/ScuffleTV/terraform and this commit is for our deployment specs for our applications. Terraform is very powerful and we use terraform cloud and remote execution to run all our jobs on Terraform cloud (which is entirely free). Terraform also supports workspaces so we can easily add a stage and development environment in the future, however we didn't for this PR.

Terraform secrets & state is managed by terraform cloud https://app.terraform.io/app/Scuffle

image

This PR also adds github environments so that deploying and linting will only run on approved PRs.

fixes #28

https://github.com/ScuffleTV/terraform/issues/2

Types of changes

What types of changes does your code introduce to Scuffle? Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

Further comments

-x-

codecov[bot] commented 1 year ago

Codecov Report

Merging #73 (e051a60) into main (b7b2ecb) will increase coverage by 0.02%. The diff coverage is 100.00%.

:exclamation: Current head e051a60 differs from pull request most recent head 8407832. Consider uploading reports for the commit 8407832 to get more accurate results

@@            Coverage Diff             @@
##             main      #73      +/-   ##
==========================================
+ Coverage   82.76%   82.79%   +0.02%     
==========================================
  Files          49       49              
  Lines        1538     1540       +2     
==========================================
+ Hits         1273     1275       +2     
  Misses        265      265              
Impacted Files Coverage Δ
common/src/types/session.rs 91.66% <ø> (ø)
backend/api/src/api/v1/gql/auth.rs 88.34% <100.00%> (ø)
common/src/config.rs 100.00% <100.00%> (ø)