-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
53 lines (46 loc) · 1.15 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
pool:
vmImage: 'Ubuntu-22.04'
trigger:
branches:
include:
- master
variables:
imageName: 'account-permission-management'
NODE_OPTIONS: '--use-openssl-ca'
registry: '_REPLACEME_'
steps:
- script: |
wget "https://github.com/hadolint/hadolint/releases/download/v2.10.0/hadolint-Linux-x86_64" -O hadolint
chmod +x hadolint
./hadolint Dockerfile
exit $?
displayName: 'Dockerfile Linternazi'
- task: SonarQubePrepare@4
inputs:
SonarQube: 'sonar-qube'
scannerMode: 'Other'
- task: Maven@3
inputs:
mavenPomFile: 'pom.xml'
goals: 'verify'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
sonarQubeRunAnalysis: true
jdkVersionOption: 1.11
- task: Docker@2
inputs:
containerRegistry: '$(registry)'
repository: '$(imageName)'
command: 'build'
Dockerfile: '**/Dockerfile'
tags: |
$(Build.BuildNumber)
latest
- task: Docker@2
inputs:
containerRegistry: '$(registry)'
repository: '$(imageName)'
command: 'push'
tags: |
$(Build.BuildNumber)
latest