forked from VamsiTechTuts/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-1.yml
30 lines (26 loc) · 1011 Bytes
/
azure-pipelines-1.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
# Maven
# Build your Java project and run tests with Apache Maven.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/java
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- task: Maven@3
inputs:
mavenPomFile: 'spring-boot-hello/pom.xml'
publishJUnitResults: true
testResultsFiles: 'spring-boot-hello/target/*jar'
javaHomeOption: 'JDKVersion'
mavenVersionOption: 'Default'
mavenAuthenticateFeed: false
effectivePomSkip: false
sonarQubeRunAnalysis: false
- task: Docker@2
displayName: Login to ACR
inputs:
command: login
containerregistrytype: 'Azure Container Registry'
azureSubscription: 'Free Trial(d7db3834-24d9-44cb-9cdc-4cda4f5bbdb8)'
azureContainerRegistry: '{"loginServer":"springbootrepo.azurecr.io", "id" : "/subscriptions/d7db3834-24d9-44cb-9cdc-4cda4f5bbdb8/resourceGroups/springboot/providers/Microsoft.ContainerRegistry/registries/springbootrepo"}'