Skip to content

Commit 6653774

Browse files
committed
restructing code
1 parent 5607d92 commit 6653774

File tree

8 files changed

+16
-14
lines changed

8 files changed

+16
-14
lines changed

.github/workflows/terraform-apply.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ env:
77
TF_CLOUD_ORGANIZATION: "DSB"
88
TF_API_TOKEN: "${{ secrets.TF_API_TOKEN }}"
99
TF_WORKSPACE: "dsb-gcp-devsecops-infra"
10-
CONFIG_DIRECTORY: "./"
10+
CONFIG_DIRECTORY: "./terraform"
1111

1212
jobs:
1313
terraform:

pipelines.tf

Lines changed: 0 additions & 12 deletions
This file was deleted.
File renamed without changes.

main.tf renamed to terraform/main.tf

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,18 @@ resource "google_secret_manager_secret" "snyk_token" {
3535
resource "google_secret_manager_secret_version" "snyk_token_version" {
3636
secret = google_secret_manager_secret.snyk_token.id
3737
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 = [google_artifact_registry_repository.default_docker_repo]
52+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)