-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-auth.yml
More file actions
51 lines (46 loc) · 1.82 KB
/
Copy pathbuild-auth.yml
File metadata and controls
51 lines (46 loc) · 1.82 KB
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
trigger:
batch: true
branches:
include:
- main
tags:
include:
- v*
pr: none
variables:
- name: appName
value: 'Auth'
- name: System.Debug
value: 'false'
pool:
vmImage: 'ubuntu-latest'
stages:
- stage: 'Docker_Push_${{ variables.appName }}'
displayName: 'Docker_Push_${{ variables.appName }}'
jobs:
- template: ../templates/docker-build-push-jobs.yml
parameters:
JobName: 'Docker_Push_${{ variables.appName }}'
dockerRegistryUrl: 'docker.io/kaminome'
imageRepository: 'auth-service'
dockerfilePath: '$(System.DefaultWorkingDirectory)/src/authorization/Dockerfile'
dockerServiceConnection: 'Docker_Hub_Connection'
shouldPushToAcr: true
shouldPushToDockerHub: true
acrRegistryUrl: 'acrsharedd01.azurecr.io'
acrServiceConnection: 'Azure_ACR_Connection'
workingDirectoryForDocker: '$(System.DefaultWorkingDirectory)/src'
- stage: 'Build_Test_Scan_${{ variables.appName }}'
displayName: 'Build_Test_Scan_${{ variables.appName }}'
jobs:
- template: ../templates/build-test-scan-jobs.yml
parameters:
JobName: 'Build_${{ variables.appName }}'
solution: '$(System.DefaultWorkingDirectory)/EventTriangleAPI.sln'
buildConfiguration: 'Release'
backendProjectPath: '$(System.DefaultWorkingDirectory)/src/authorization/EventTriangleAPI.Authorization.Presentation'
shouldRunUnitTests: false
shouldRunIntegrationTests: true
integrationTestsProjectPath: '$(System.DefaultWorkingDirectory)/src/authorization/EventTriangleAPI.Authorization.IntegrationTests/EventTriangleAPI.Authorization.IntegrationTests.csproj'
sonarCloudEnabled: true
sonarCloudServiceConnection: 'SonarCloud_Service_Connection'