From a9d2c0c7390fd5f83b4720a9482e0d57a7c824e1 Mon Sep 17 00:00:00 2001 From: sumedh Date: Thu, 7 Nov 2024 18:18:58 +0530 Subject: [PATCH] deployment pipeline added --- azure-pipelines.yml | 28 ---------------------------- hermione-deployment.yaml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 28 deletions(-) delete mode 100644 azure-pipelines.yml create mode 100644 hermione-deployment.yaml diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 87091ee..0000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,28 +0,0 @@ -# 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: DownloadSecureFile@1 - name: mvnSettings - displayName: 'Download Maven settings' - inputs: - secureFile: 'maven-azuredevops-settings.xml' -- task: Maven@3 - inputs: - mavenPomFile: 'pom.xml' - goals: 'deploy' - options: '-s $(mvnSettings.secureFilePath)' - mavenAuthenticateFeed: true - publishJUnitResults: true - testResultsFiles: '**/TEST-*.xml' - javaHomeOption: 'JDKVersion' - jdkVersionOption: '1.21' - mavenVersionOption: 'Default' \ No newline at end of file diff --git a/hermione-deployment.yaml b/hermione-deployment.yaml new file mode 100644 index 0000000..96a7de7 --- /dev/null +++ b/hermione-deployment.yaml @@ -0,0 +1,31 @@ +kind: Deployment +apiVersion: apps/v1 +metadata: + name: hermione + namespace: olympus +spec: + replicas: 1 + selector: + matchLabels: + app: hermione + template: + metadata: + labels: + app: hermione + spec: + containers: + - name: hermione + image: olympusreg.azurecr.io/hermione:a843dee4 + envFrom: + - configMapRef: + name: olympus-db-shared-cfg + env: + - name: HERMIONE_FE_URL + value: http://hermione-aks.olympusai.live + - name: ARIADNE_FE_URL + value: http://ariadne-aks.olympusai.live + - name: EUREKA_URI + value: >- + http://eureka-server-service.olympus.svc.cluster.local:8761/eureka + resources: {} + imagePullPolicy: Always \ No newline at end of file