Skip to content

Commit c307144

Browse files
committed
feat(github): allow dispatch outside of main
1 parent 2e82cbc commit c307144

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
workflow_dispatch:
78

89
jobs:
910
terraform_apply:

.github/workflows/terraform-destroy.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ on:
55

66
jobs:
77
terraform_destroy:
8-
if: github.ref == 'refs/heads/main'
98
uses: soat-tech-challenge/github-workflows/.github/workflows/terraform-destroy.yml@main
109
secrets: inherit

main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ resource "aws_db_instance" "this" {
1414
identifier = "soat-tc-rds-db"
1515
engine = "postgres"
1616

17+
db_name = "backend-db"
18+
1719
allocated_storage = 20
1820
storage_type = "gp2"
1921
engine_version = "15.3"

0 commit comments

Comments
 (0)