Skip to content

Commit 6710144

Browse files
authored
Cicd workflow addition (#11)
* feat: added the gcs backend and updated the readme * feat: added the gitops workflow pipeline * feat: updated the if condition in pipeline * feat: removed continuation on error for steps * feat: updated the formatting of files
1 parent 8ae915b commit 6710144

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/gitops.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ jobs:
7272
- name: Terraform fmt
7373
id: tf_fmt
7474
run: terraform fmt -check
75-
continue-on-error: true
7675

7776
# Initialize the Terraform working directory
7877
- name: Terraform Init
@@ -88,7 +87,6 @@ jobs:
8887
- name: Terraform Plan
8988
id: tf_plan
9089
run: terraform plan -no-color
91-
continue-on-error: true
9290

9391
# Comments the terraform plan output on pull request
9492
- id: comment_output
@@ -132,7 +130,7 @@ jobs:
132130
# Executes the apply operation to deploy the actual infrastructure
133131
- name: Terraform Apply
134132
id: tf_apply
135-
if: github.ref == 'refs/heads/"master"' && github.event_name == 'push'
133+
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
136134
run: terraform apply -auto-approve
137135

138136
- name: Notify success

tf-variables/backend.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// Configure Google Cloud Storage (GCS) Backend
1515
terraform {
1616
backend "gcs" {
17-
bucket = "bkt-tfstates-15062024"
18-
prefix = "terraform/tst"
17+
bucket = "bkt-tfstates-15062024"
18+
prefix = "terraform/tst"
1919
}
2020
}

0 commit comments

Comments
 (0)