Skip to content

Commit 48185ff

Browse files
authored
temp: close test environment (vspo-lab#601)
1 parent 58c431a commit 48185ff

File tree

2 files changed

+58
-58
lines changed

2 files changed

+58
-58
lines changed

.github/workflows/gcp_deploy.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ jobs:
5050
docker build --target http-serve -t $ARTIFACT_REPOSITORY/$GCP_PROJECT/$REPOSITORY_NAME/$IMAGE_NAME:$IMAGE_TAG -f $DOCKERFILE .
5151
docker tag $ARTIFACT_REPOSITORY/$GCP_PROJECT/$REPOSITORY_NAME/$IMAGE_NAME:$IMAGE_TAG $ARTIFACT_REPOSITORY/$GCP_PROJECT/$REPOSITORY_NAME/$IMAGE_NAME:latest
5252
docker push $ARTIFACT_REPOSITORY/$GCP_PROJECT/$REPOSITORY_NAME/$IMAGE_NAME:$IMAGE_TAG && docker push $ARTIFACT_REPOSITORY/$GCP_PROJECT/$REPOSITORY_NAME/$IMAGE_NAME:latest
53-
- id: deploy
54-
uses: google-github-actions/deploy-cloudrun@v2
55-
with:
56-
service: 'blue-vspo-portal'
57-
image: ${{ env.ARTIFACT_REPOSITORY }}/${{ env.GCP_PROJECT }}/${{ env.REPOSITORY_NAME }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
58-
region: ${{ env.REGION }}
59-
no_traffic: false
53+
# - id: deploy
54+
# uses: google-github-actions/deploy-cloudrun@v2
55+
# with:
56+
# service: 'blue-vspo-portal'
57+
# image: ${{ env.ARTIFACT_REPOSITORY }}/${{ env.GCP_PROJECT }}/${{ env.REPOSITORY_NAME }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
58+
# region: ${{ env.REGION }}
59+
# no_traffic: false

deployment/terraform/blue/main.tf

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -127,58 +127,58 @@ locals {
127127
]
128128
}
129129

130-
module "cloud_run_service" {
131-
source = "../modules/cloud_run"
132-
location = local.location
133-
env = local.env
134-
project = var.GOOGLE_PROJECT_ID
135-
artifact_registry_repository_id = module.artifact_registry.artifact_registry_repository_id
136-
cloud_run_sa_email = module.iam.cloud_run_sa_email
137-
cloud_run_service_env_vars = local.cloud_run_service_env_vars
138-
datadog_env_vars = local.datadog_env_vars
139-
}
130+
# module "cloud_run_service" {
131+
# source = "../modules/cloud_run"
132+
# location = local.location
133+
# env = local.env
134+
# project = var.GOOGLE_PROJECT_ID
135+
# artifact_registry_repository_id = module.artifact_registry.artifact_registry_repository_id
136+
# cloud_run_sa_email = module.iam.cloud_run_sa_email
137+
# cloud_run_service_env_vars = local.cloud_run_service_env_vars
138+
# datadog_env_vars = local.datadog_env_vars
139+
# }
140140

141-
module "cloud_scheduler_job" {
142-
source = "../modules/cloud_scheduler_job"
143-
location = local.location
144-
env = local.env
145-
project = var.GOOGLE_PROJECT_ID
146-
cloud_scheduler_sa_email = module.iam.cloud_scheduler_sa_email
147-
schedules = [
148-
{
149-
name = "job1"
150-
schedule = "*/5 * * * *"
151-
target_url = "${module.cloud_run_service.cloud_run_service_url}/ping"
152-
headers = {
153-
"Content-Type" = "application/json"
154-
}
155-
body = jsonencode({})
156-
},
157-
{
158-
name = "job2"
159-
schedule = "*/5 * * * *"
160-
target_url = "${module.cloud_run_service.cloud_run_service_url}/search_videos"
161-
headers = {
162-
"Content-Type" = "application/json"
163-
}
164-
body = jsonencode({
165-
platform_type = ["youtube", "twitch", "twitcasting"]
166-
video_type = "vspo_stream"
167-
})
168-
},
169-
{
170-
name = "job3"
171-
schedule = "*/5 * * * *"
172-
target_url = "${module.cloud_run_service.cloud_run_service_url}/exist_videos"
173-
headers = {
174-
"Content-Type" = "application/json"
175-
}
176-
body = jsonencode({
177-
period = "week"
178-
})
179-
}
180-
]
181-
}
141+
# module "cloud_scheduler_job" {
142+
# source = "../modules/cloud_scheduler_job"
143+
# location = local.location
144+
# env = local.env
145+
# project = var.GOOGLE_PROJECT_ID
146+
# cloud_scheduler_sa_email = module.iam.cloud_scheduler_sa_email
147+
# schedules = [
148+
# {
149+
# name = "job1"
150+
# schedule = "*/5 * * * *"
151+
# target_url = "${module.cloud_run_service.cloud_run_service_url}/ping"
152+
# headers = {
153+
# "Content-Type" = "application/json"
154+
# }
155+
# body = jsonencode({})
156+
# },
157+
# {
158+
# name = "job2"
159+
# schedule = "*/5 * * * *"
160+
# target_url = "${module.cloud_run_service.cloud_run_service_url}/search_videos"
161+
# headers = {
162+
# "Content-Type" = "application/json"
163+
# }
164+
# body = jsonencode({
165+
# platform_type = ["youtube", "twitch", "twitcasting"]
166+
# video_type = "vspo_stream"
167+
# })
168+
# },
169+
# {
170+
# name = "job3"
171+
# schedule = "*/5 * * * *"
172+
# target_url = "${module.cloud_run_service.cloud_run_service_url}/exist_videos"
173+
# headers = {
174+
# "Content-Type" = "application/json"
175+
# }
176+
# body = jsonencode({
177+
# period = "week"
178+
# })
179+
# }
180+
# ]
181+
# }
182182

183183
module "secret_manager" {
184184
source = "../modules/secret_manager"

0 commit comments

Comments
 (0)