-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild-no-tests.yaml
More file actions
44 lines (40 loc) · 1.32 KB
/
cloudbuild-no-tests.yaml
File metadata and controls
44 lines (40 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
steps:
# Build the Docker image (skip tests for faster deployment)
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/exch-sim:latest', '.']
timeout: '1200s'
env:
- 'DOCKER_BUILDKIT=1'
# Push the image to Container Registry
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/$PROJECT_ID/exch-sim:latest']
# Deploy to Cloud Run
- name: 'gcr.io/cloud-builders/gcloud'
args:
- 'run'
- 'deploy'
- 'exch-sim'
- '--image=gcr.io/$PROJECT_ID/exch-sim:latest'
- '--platform=managed'
- '--region=asia-northeast1'
- '--allow-unauthenticated'
- '--port=8080'
- '--memory=1Gi'
- '--cpu=1'
- '--timeout=900s'
- '--set-env-vars=JAVA_OPTS=-Xmx768m -Xms256m -XX:+UseG1GC -XX:MaxGCPauseMillis=200'
- '--concurrency=1000'
- '--min-instances=0'
- '--max-instances=10'
- '--set-env-vars=SPRING_PROFILES_ACTIVE=prod'
- '--set-env-vars=GCP_PROJECT_ID=$PROJECT_ID'
- '--set-env-vars=BIGQUERY_DATASET=repository'
- '--set-env-vars=DATA_MIGRATION_BIGQUERY_ENABLED=true'
- '--clear-vpc-connector'
# Images to be pushed to Container Registry
images:
- 'gcr.io/$PROJECT_ID/exch-sim:latest'
timeout: '2400s'
options:
machineType: 'E2_HIGHCPU_8'
logging: CLOUD_LOGGING_ONLY