File tree Expand file tree Collapse file tree 8 files changed +20
-15
lines changed Expand file tree Collapse file tree 8 files changed +20
-15
lines changed Original file line number Diff line number Diff line change 7
7
TF_CLOUD_ORGANIZATION : " DSB"
8
8
TF_API_TOKEN : " ${{ secrets.TF_API_TOKEN }}"
9
9
TF_WORKSPACE : " dsb-gcp-devsecops-infra"
10
- CONFIG_DIRECTORY : " ./"
10
+ CONFIG_DIRECTORY : " ./terraform "
11
11
12
12
jobs :
13
13
terraform :
Load Diff This file was deleted.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ resource "google_artifact_registry_repository" "default" {
21
21
22
22
# Secrets
23
23
resource "google_secret_manager_secret" "snyk_token" {
24
- secret_id = " cloudbuild/ snyk-token"
24
+ secret_id = " cloudbuild- snyk-token"
25
25
26
26
replication {
27
27
user_managed {
@@ -35,4 +35,21 @@ resource "google_secret_manager_secret" "snyk_token" {
35
35
resource "google_secret_manager_secret_version" "snyk_token_version" {
36
36
secret = google_secret_manager_secret. snyk_token . id
37
37
secret_data = var. SNYK_TOKEN
38
- }
38
+ }
39
+
40
+ # Pipelines
41
+ module "gcp_python_fastapi_pipeline" {
42
+ source = " ./modules/pipelines"
43
+
44
+ project_id = var. project_id
45
+ region = var. region
46
+
47
+ cloudbuild_trigger_name = " gcp-python-fastapi"
48
+ description = " Cloud Build Trigger for GCP Python FastAPI"
49
+ github_repo_name = " gcp-python-fastapi"
50
+
51
+ depends_on = [
52
+ google_artifact_registry_repository . default ,
53
+ google_secret_manager_secret_version . snyk_token_version
54
+ ]
55
+ }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments