Skip to content

Commit

Permalink
cleanup azure pipeline and add more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jgbradley1 committed Jun 2, 2024
1 parent ba1de36 commit fc62fb2
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .azdo/azure-pipeline.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Starter pipeline

# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

trigger:
- main

Expand All @@ -12,17 +6,22 @@ pool:

steps:
- 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
- script: toml-to-req --toml-file pyproject.toml --poetry --optional-lists dev,test,backend,frontend
# toml-to-req is not perfect. It will leave wildcard characters in the requirements.txt file which we remove
- script: sed -i 's/\*//g' requirements.txt
- script: |
pip install toml-to-requirements
toml-to-req --toml-file pyproject.toml --poetry --optional-lists dev,test,backend,frontend
# toml-to-req is not perfect. It will leave wildcard characters in the requirements.txt file which we remove
sed -i 's/\*//g' requirements.txt
displayName: 'Export python dependencies to requirements.txt'
- task: ComponentGovernanceComponentDetection@0
displayName: 'Component Governance - Component Detection'
inputs:
scanType: 'Register'
verbosity: 'Verbose'
alertWarningLevel: 'High'
dockerImagesToScan: graphrag:backend, graphrag:frontend
dockerImagesToScan: graphrag:backend,graphrag:frontend

0 comments on commit fc62fb2

Please sign in to comment.