Skip to content

Commit

Permalink
add job (#13)
Browse files Browse the repository at this point in the history
* add job

* add job

* add job

* add job
  • Loading branch information
hadar-co authored Oct 27, 2022
1 parent 3961102 commit d375c62
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions src/jobs/policy-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
description: >
Automatically execute a Datree policy check as a job.
parameters:
cliArguments:
default: ''
description: Additional arguments to pass to the test command
type: string
helmArguments:
default: ''
description: Additional arguments to pass to the helm test command
type: string
isHelmChart:
default: false
description: Are we running the test on a Helm chart?
type: boolean
isKustomization:
default: false
description: Are we running the test on a Kustomization file?
type: boolean
kustomizeArguments:
default: ''
description: Additional arguments to pass to the kustomize test command
type: string
path:
default: '**/*.yaml'
description: Which file(s) to run the test on?
type: string

executor: default

environment:
- name: DATREE_TOKEN
value: $DATREE_TOKEN

steps:
- checkout
- test:
cliArguments: <<parameters.cliArguments>>
helmArguments: <<parameters.helmArguments>>
isHelmChart: <<parameters.isHelmChart>>
isKustomization: <<parameters.isKustomization>>
kustomizeArguments: <<parameters.kustomizeArguments>>
path: <<parameters.path>>

0 comments on commit d375c62

Please sign in to comment.