diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 18d6dc7..046c567 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -25,7 +25,7 @@ jobs: id: meta uses: docker/metadata-action@v4 with: - images: inter92/fastapi-cloudrun + images: inter92/youtube-auto-dub - name: Build and push Docker image uses: docker/build-push-action@v3 diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 907245f..7e3b1c7 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -1,10 +1,10 @@ steps: - name: "gcr.io/cloud-builders/docker" args: - ["build", "-t", "gcr.io/$PROJECT_ID/fastapi-cloudrun:latest", "./backend"] + ["build", "-t", "gcr.io/$PROJECT_ID/youtube-auto-dub:latest", "./backend"] - name: "gcr.io/cloud-builders/docker" - args: ["push", "gcr.io/$PROJECT_ID/fastapi-cloudrun:latest"] + args: ["push", "gcr.io/$PROJECT_ID/youtube-auto-dub:latest"] - name: "gcr.io/google.com/cloudsdktool/cloud-sdk" entrypoint: gcloud @@ -12,10 +12,10 @@ steps: - "run" - "deploy" - "cloudrun-service" # Make sure this is your service name - - "--image=gcr.io/$PROJECT_ID/fastapi-cloudrun:latest" + - "--image=gcr.io/$PROJECT_ID/youtube-auto-dub:latest" - "--region=us-central1" # Confirm this is your desired region - "--platform=managed" - "--allow-unauthenticated" # Consider removing if you need authentication images: - - "gcr.io/$PROJECT_ID/fastapi-cloudrun:latest" + - "gcr.io/$PROJECT_ID/youtube-auto-dub:latest" diff --git a/terraform/modules/cloud_run/main.tf b/terraform/modules/cloud_run/main.tf index 4b51748..12992cc 100644 --- a/terraform/modules/cloud_run/main.tf +++ b/terraform/modules/cloud_run/main.tf @@ -5,7 +5,7 @@ resource "google_cloud_run_v2_service" "default" { template { containers { - image = "gcr.io/${var.gcp_project_id}/fastapi-cloudrun:latest" + image = "gcr.io/${var.gcp_project_id}/youtube-auto-dub:latest" resources { limits = { cpu = "2" diff --git a/terraform/terraform.tfvars.example b/terraform/terraform.tfvars.example new file mode 100644 index 0000000..6844627 --- /dev/null +++ b/terraform/terraform.tfvars.example @@ -0,0 +1,28 @@ +/* ------------------------------ GCP Foundation----------------------------- */ + +gcp_project_id = "gcp_project_id" +gcp_project_number = "gcp_project_number" +gcp_credentials_file = "~/gcp_credentials_file.json" +gcp_service_account_name = "gcp_service_account_name" + +gcp_services = ["cloudbuild","run","compute"] + +gcp_existing_service_account_roles = [ + "secretmanager.secretAccessor", + ] +gcp_cloud_build_service_account_roles = ["secretmanager.secretAccessor","iam.serviceAccountUser", "compute.admin", "run.admin"] + + +/* ------------------------------ GCP Network ----------------------------- */ +gcp_network_name = "default" +gcp_region = "us-central1" +gcp_zone = "us-central1-c" + + +/* ------------------------------- Cloud Build ------------------------------ */ +repo_name = "repo_name" +branch = "master" + +github_token = "github_token" +github_gcp_installation_id = "github_gcp_installation_id" +github_remote_uri = \ No newline at end of file