diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..caa1af6 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,35 @@ +trigger: +- master + +resources: +- repo: self + +pool: + vmImage: ubuntu-latest + +variables: + dockerRegistryServiceConnection: '1fb7e5d9-d1c1-47a7-8da7-c3a63a0d3067' + imageRepository: 'karaplan' + containerRegistry: 'fcrespel.azurecr.io' + tag: '$(Build.BuildId)' + +steps: +- task: Maven@3 + inputs: + mavenPomFile: 'pom.xml' + mavenOptions: '-Xmx512m' + javaHomeOption: 'JDKVersion' + jdkVersionOption: '1.11' + jdkArchitectureOption: 'x64' + publishJUnitResults: true + testResultsFiles: '**/surefire-reports/TEST-*.xml' + goals: 'verify' + options: '-B -Dfrontend-build -Ddocker-build' +- task: Docker@2 + inputs: + command: 'buildAndPush' + Dockerfile: 'target/docker-build/Dockerfile' + buildContext: 'target/docker-build' + containerRegistry: '$(dockerRegistryServiceConnection)' + repository: '$(imageRepository)' + tags: '$(tag)'