forked from eurogig/jankybank
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
31 lines (31 loc) · 882 Bytes
/
cloudbuild.yaml
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
steps:
- name: bridgecrew/checkov
args:
- '--repo-id'
- $PROJECT_ID/$REPO_NAME
- '--framework'
- kubernetes
- '-c'
- 'CKV_K8S_16,CKV_CVE_2021*'
- '-s'
- '-d'
- /workspace
# - name: ubuntu
# args:
# - '-c'
# - |
# apt update
# apt install -y unzip
# rm /workspace/application/deploy.jar
# cd /workspace/application; unzip /workspace/application/deploy.jar.zip
# entrypoint: bash
- name: 'gcr.io/cloud-builders/mvn'
args: ['install', '-fapplication/pom.xml']
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '--tag=gcr.io/$PROJECT_ID/jankybank:$SHORT_SHA', '.']
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/$PROJECT_ID/jankybank:$SHORT_SHA']
options:
substitutionOption: ALLOW_LOOSE
substitutions:
_GCR_HOST: 'gcr.io/${PROJECT_ID}'