Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/terraform-apply.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Terraform Apply

on:
push:
branches: [ main ]

permissions:
contents: read

jobs:
apply:
name: Terraform Apply
runs-on: ubuntu-latest
environment: ${{ github.event.repository.name }}
steps:
- uses: actions/checkout@v4

- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: "1.7.0"

- name: Terraform Init
run: terraform init

- name: Terraform Apply
run: terraform apply -auto-approve
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@
.terraform.lock.hcl
**/output/
.DS_Store
*.tfvars
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
}

module "app_config" {
source = "github.com/YOUR_USERNAME/infra-modules//modules/app-config?ref=v1.0.0"
source = "github.com/Lexxick/infra-modules//modules/app-config?ref=v1.0.0"

environment = var.environment
app_version = var.app_version
Expand Down
7 changes: 7 additions & 0 deletions terraform.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
environment = "test"
app_version = "1.0.0"
replica_count = 2
feature_flags = {
dark_mode = true
new_dashboard = true
}
Loading