Skip to content

Commit

Permalink
updating paths
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilmulinti committed Dec 23, 2024
1 parent 25df176 commit eb4713e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions infra-as-code/terraform/scripts/envYAMLUpdater.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func main() {
os.Exit(1)
}
// Read the YAML file
yamlFile, err := ioutil.ReadFile("../../../config-as-code/environments/egov-demo.yaml")
yamlFile, err := ioutil.ReadFile("../../../deploy-as-code/helm/environments/egov-demo.yaml")
if err != nil {
fmt.Fprintf(os.Stderr, "Error reading YAML file: %v\n", err)
os.Exit(1)
Expand All @@ -63,7 +63,7 @@ func main() {
// Write the updated YAML to stdout
fmt.Println(output)

err = ioutil.WriteFile("../../../config-as-code/environments/egov-demo.yaml", []byte(output), 0644)
err = ioutil.WriteFile("../../../deploy-as-code/helm/environments/egov-demo.yaml", []byte(output), 0644)
if err != nil {
fmt.Fprintf(os.Stderr, "Error writing YAML file: %v\n", err)
os.Exit(1)
Expand Down
4 changes: 2 additions & 2 deletions infra-as-code/terraform/scripts/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ func main() {
replaceInFile("../sample-aws/main.tf", data, false)
fmt.Println("main.tf file updated successfully!")

replaceInFile("../../../config-as-code/environments/egov-demo.yaml", data, true)
replaceInFile("../../../deploy-as-code/helm/environments/egov-demo.yaml", data, true)
fmt.Println("env yaml file updated successfully!")

replaceInFile("../../../config-as-code/environments/egov-demo-secrets.yaml", data, true)
replaceInFile("../../../deploy-as-code/helm/environments/egov-demo-secrets.yaml", data, true)
fmt.Println("env secrets yaml file updated successfully!")
}

Expand Down

0 comments on commit eb4713e

Please sign in to comment.