Repository navigation
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
51 lines (46 loc) · 1.62 KB
/
Copy pathcloudbuild.yaml
File metadata and controls
51 lines (46 loc) · 1.62 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
45
46
47
48
49
50
51
steps:
- name: gcr.io/cloud-builders/docker
id: Build
args:
- build
- --no-cache
- -t
- us-west1-docker.pkg.dev/$PROJECT_ID/cloud-run-source-deploy/allfiles/allfilesxxx:$COMMIT_SHA
- .
- -f
- Dockerfile
- name: gcr.io/cloud-builders/docker
id: Push
args:
- push
- us-west1-docker.pkg.dev/$PROJECT_ID/cloud-run-source-deploy/allfiles/allfilesxxx:$COMMIT_SHA
- name: aquasec/trivy:0.54.1
id: VulnerabilityScan
args:
- image
- --exit-code
- "1"
- --severity
- HIGH,CRITICAL
- --no-progress
- us-west1-docker.pkg.dev/$PROJECT_ID/cloud-run-source-deploy/allfiles/allfilesxxx:$COMMIT_SHA
- name: gcr.io/google.com/cloudsdktool/cloud-sdk:slim
id: Deploy
entrypoint: gcloud
args:
- run
- services
- update
- allfilesxxx
- --platform=managed
- --region=us-west1
- --image=us-west1-docker.pkg.dev/$PROJECT_ID/cloud-run-source-deploy/allfiles/allfilesxxx:$COMMIT_SHA
- --concurrency=10
- --update-env-vars=SPRINGDOC_API_DOCS_ENABLED=false,SPRINGDOC_SWAGGER_UI_ENABLED=false,APP_SECURITY_REQUIRE_AUTH=true,APP_BASIC_AUTH_USERNAME=fileoperationsxxx-admin,APP_RATE_LIMIT_ENABLED=true,APP_RATE_LIMIT_REQUESTS_PER_MINUTE=30
- --update-secrets=APP_BASIC_AUTH_PASSWORD=app-basic-auth-password:latest
- --labels=managed-by=gcp-cloud-build-deploy-cloud-run,commit-sha=$COMMIT_SHA,gcb-build-id=$BUILD_ID
- --quiet
images:
- us-west1-docker.pkg.dev/$PROJECT_ID/cloud-run-source-deploy/allfiles/allfilesxxx:$COMMIT_SHA
options:
logging: CLOUD_LOGGING_ONLY