From 06ef368cd57ae58561c663140629028880a81a84 Mon Sep 17 00:00:00 2001 From: Fabien Crespel Date: Thu, 21 Sep 2023 21:58:13 +0200 Subject: [PATCH] Set up CI with Azure Pipelines --- azure-pipelines.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..98b67de --- /dev/null +++ b/azure-pipelines.yml @@ -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)'