deployment pipeline added

This commit is contained in:
sumedh
2024-11-07 18:18:58 +05:30
parent a843dee4b6
commit a9d2c0c739
2 changed files with 31 additions and 28 deletions

View File

@@ -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'

31
hermione-deployment.yaml Normal file
View File

@@ -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