Update azure pipelines (#31)

This commit is contained in:
Richard Ortega 2024-06-27 15:49:49 -04:00 committed by GitHub
parent 2cbf2c083e
commit f6cf4b6316
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,20 +5,6 @@ pool:
vmImage: ubuntu-latest
steps:
- task: PoliCheck@2
displayName: 'Run PoliCheck'
inputs:
targetType: 'F'
targetArgument: '$(Build.SourcesDirectory)'
result: 'PoliCheck.xml'
toolVersion: Latest
- script: docker build -t graphrag:backend -f docker/Dockerfile-backend .
displayName: 'Build backend docker image'
- script: docker build -t graphrag:frontend -f docker/Dockerfile-frontend .
displayName: 'Build frontend docker image'
# Component Governance does not support pyproject.toml yet.
# For that reason, use toml-to-requirements to export the
# dependencies into a requirements.txt file.
- script: |
pip install toml-to-requirements
toml-to-req --toml-file pyproject.toml --poetry --optional-lists dev,test,backend,frontend
@ -31,4 +17,10 @@ steps:
scanType: 'Register'
verbosity: 'Verbose'
alertWarningLevel: 'High'
dockerImagesToScan: graphrag:backend,graphrag:frontend
# - task: PoliCheck@2
# displayName: 'Run PoliCheck'
# inputs:
# targetType: 'F'
# targetArgument: '$(Build.SourcesDirectory)'
# result: 'PoliCheck.xml'
# toolVersion: Latest