Skip to content

Commit 442daf9

Browse files
committed
Add CI test for building and scanning using Docker
Signed-off-by: Abhishek Kumar <abhi.kr.2100@gmail.com>
1 parent 1595e19 commit 442daf9

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

azure-pipelines.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,27 @@
77

88
jobs:
99

10+
11+
################################################################################
12+
# Tests building with docker
13+
################################################################################
14+
15+
16+
- job: test_build_and_scan_with_docker
17+
steps:
18+
- task: Docker@2
19+
displayName: Check that building using Docker succeeds
20+
inputs:
21+
command: 'build'
22+
Dockerfile: '**/Dockerfile'
23+
tags: |
24+
'scancode-toolkit'
25+
'scancode-toolkit:$(Build.BuildId)'
26+
- script: |
27+
docker scan scancode-toolkit:$(Build.BuildId)
28+
displayName: 'Scan image'
29+
30+
1031
################################################################################
1132
# These jobs are using VMs and Azure-provided Pythons 3.8
1233
################################################################################

0 commit comments

Comments
 (0)