deployment pipeline added
This commit is contained in:
@@ -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
31
hermione-deployment.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user