mirror of
https://github.com/Azure-Samples/graphrag-accelerator.git
synced 2025-11-11 16:32:05 +00:00
Update azure pipelines (#31)
This commit is contained in:
parent
2cbf2c083e
commit
f6cf4b6316
@ -5,20 +5,6 @@ pool:
|
|||||||
vmImage: ubuntu-latest
|
vmImage: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
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: |
|
- script: |
|
||||||
pip install toml-to-requirements
|
pip install toml-to-requirements
|
||||||
toml-to-req --toml-file pyproject.toml --poetry --optional-lists dev,test,backend,frontend
|
toml-to-req --toml-file pyproject.toml --poetry --optional-lists dev,test,backend,frontend
|
||||||
@ -31,4 +17,10 @@ steps:
|
|||||||
scanType: 'Register'
|
scanType: 'Register'
|
||||||
verbosity: 'Verbose'
|
verbosity: 'Verbose'
|
||||||
alertWarningLevel: 'High'
|
alertWarningLevel: 'High'
|
||||||
dockerImagesToScan: graphrag:backend,graphrag:frontend
|
# - task: PoliCheck@2
|
||||||
|
# displayName: 'Run PoliCheck'
|
||||||
|
# inputs:
|
||||||
|
# targetType: 'F'
|
||||||
|
# targetArgument: '$(Build.SourcesDirectory)'
|
||||||
|
# result: 'PoliCheck.xml'
|
||||||
|
# toolVersion: Latest
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user