Skip to content

Commit

Permalink
Set up CI with Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
fcrespel committed Sep 21, 2023
1 parent 165b9bf commit 22f62fe
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -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)'

0 comments on commit 22f62fe

Please sign in to comment.