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 Nov 19, 2023
1 parent 165b9bf commit 06ef368
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
trigger:
- master

resources:
- repo: self

pool:
vmImage: ubuntu-latest

variables:
dockerRegistryServiceConnection: '9f55b9eb-5931-415a-88b9-b07f34a007a1'
imageRepository: 'karaplan'
tag: '$(Build.SourceBranchName)'

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 06ef368

Please sign in to comment.