Skip to content

Commit

Permalink
add build sample for vulnerability scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
karanibm6 committed May 15, 2024
1 parent 5062542 commit 9badf96
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions samples/v1beta1/build/build_buildah_vulnerability_scanning_cr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
apiVersion: shipwright.io/v1beta1
kind: Build
metadata:
name: buildah-golang-build
spec:
source:
type: Git
git:
url: https://github.com/shipwright-io/sample-go
contextDir: docker-build
strategy:
name: buildah-shipwright-managed-push
kind: ClusterBuildStrategy
paramValues:
- name: dockerfile
value: Dockerfile
output:
image: image-registry.openshift-image-registry.svc:5000/build-examples/taxi-app
vulnerabilityScan:
enabled: true
fail: false # if set to true, then the image won't be pushed to the registry

0 comments on commit 9badf96

Please sign in to comment.