Skip to content

Commit

Permalink
Set up CI with Azure Pipelines
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
MindPatch committed Aug 15, 2024
1 parent 4eddeea commit 0b7fefe
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
trigger:
- master

pool:
vmImage: ubuntu-latest

variables:
SONAR_PROJECTKEY: 'azure-the-test'
SONAR_HOST_URL: $(SONAR_HOST_URL)
SONAR_TOKEN: $(SONAR_TOKEN)

steps:
- checkout: self
displayName: 'Checkout Source'

- task: Docker@2
inputs:
command: 'pull'
container: 'blacklocksec/code-scanner:latest'
displayName: 'Pull Blacklock Code Scanner Docker Image'

- script: |
docker run --rm -v $(Build.SourcesDirectory):/app -e SONAR_PROJECTKEY=$(SONAR_PROJECTKEY) -e SONAR_HOST_URL=$(SONAR_HOST_URL) -e SONAR_TOKEN=$(SONAR_TOKEN) blacklocksec/code-scanner:latest
displayName: 'Run Blacklock Code Scanner'
env:
SONAR_HOST_URL: $(SONAR_HOST_URL)
SONAR_TOKEN: $(SONAR_TOKEN)

0 comments on commit 0b7fefe

Please sign in to comment.