Skip to content

Commit

Permalink
fix: Missing deployment environment variable (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
egekocabas authored Jan 16, 2024
1 parent afd2ccf commit 03cbdea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion parma_mining/github/api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
CrawlingError,
)

env = os.getenv("env", "local")
env = os.getenv("DEPLOYMENT_ENV", "local")

if env == "prod":
logging.basicConfig(level=logging.INFO)
Expand Down
4 changes: 4 additions & 0 deletions terraform/module/service.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ resource "google_cloud_run_service" "parma_mining_github_cloud_run" {
name = "PARMA_SHARED_SECRET_KEY"
value = var.PARMA_SHARED_SECRET_KEY
}
env {
name = "DEPLOYMENT_ENV"
value = var.env
}
}
}
}
Expand Down

0 comments on commit 03cbdea

Please sign in to comment.