Azure pipeline
TO-DO list for setting-up Datree in your CI
- Get your account token
- Set DATREE_TOKEN as a secret/environment variable
- Add datree to your CI script
CI config example
trigger:
- main
pool:
vmImage: ubuntu-latest
steps:
- script: curl https://get.datree.io | /bin/bash
displayName: 'Install Datree'
- script: datree test ~/.datree/k8s-demo.yaml
env:
DATREE_TOKEN: $(DATREE_TOKEN)
displayName: 'Run Datree policy check'