Skip to content

Commit

Permalink
Add GCP Codebuild config
Browse files Browse the repository at this point in the history
  • Loading branch information
metahertz committed Mar 12, 2024
1 parent 9228842 commit d87410f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
steps:
- name: bridgecrew/checkov
args:
- '--repo-id'
- $PROJECT_ID/$REPO_NAME
- '--framework'
- kubernetes
- '-c'
- 'CKV_K8S_16,CKV_CVE_2021*'
- '-s'
- '-d'
- /workspace
- 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-dockerized', '.']
images: ['gcr.io/$PROJECT_ID/jankybank-dockerized']
images:
- 'gcr.io/${PROJECT_ID}/jankybank-dockerized'
options:
substitutionOption: ALLOW_LOOSE
substitutions:
_GCR_HOST: 'gcr.io/${PROJECT_ID}'

0 comments on commit d87410f

Please sign in to comment.