release
This commit is contained in:
parent
2e443a03bd
commit
2220ab7d79
2
deployment/Jenkinsfile
vendored
2
deployment/Jenkinsfile
vendored
@ -28,7 +28,7 @@ podTemplate(
|
|||||||
stage("Get Source") {
|
stage("Get Source") {
|
||||||
checkout scm
|
checkout scm
|
||||||
props = readProperties file: "deployment/deploy_env_vars"
|
props = readProperties file: "deployment/deploy_env_vars"
|
||||||
namespace = "${props.teamid}-${props.root_project}-ns"
|
namespace = "${props.namespace}"
|
||||||
}
|
}
|
||||||
|
|
||||||
stage("Setup AKS") {
|
stage("Setup AKS") {
|
||||||
|
|||||||
@ -33,10 +33,12 @@ podTemplate(
|
|||||||
def imageTag = getImageTag()
|
def imageTag = getImageTag()
|
||||||
def manifestRepo = 'cna-bootcamp/lifesub-manifest'
|
def manifestRepo = 'cna-bootcamp/lifesub-manifest'
|
||||||
def manifestBranch = 'main'
|
def manifestBranch = 'main'
|
||||||
|
def namespace
|
||||||
|
|
||||||
stage("Get Source") {
|
stage("Get Source") {
|
||||||
checkout scm
|
checkout scm
|
||||||
props = readProperties file: "deployment/deploy_env_vars"
|
props = readProperties file: "deployment/deploy_env_vars"
|
||||||
|
namespace = "${props.namespace}"
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Build & Push Image') {
|
stage('Build & Push Image') {
|
||||||
|
|||||||
@ -31,7 +31,7 @@ podTemplate(
|
|||||||
stage("Get Source") {
|
stage("Get Source") {
|
||||||
checkout scm
|
checkout scm
|
||||||
props = readProperties file: "deployment/deploy_env_vars"
|
props = readProperties file: "deployment/deploy_env_vars"
|
||||||
namespace = "${props.teamid}-${props.root_project}-ns"
|
namespace = "${props.namespace}"
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Code Analysis & Quality Gate') {
|
stage('Code Analysis & Quality Gate') {
|
||||||
|
|||||||
@ -48,7 +48,8 @@ spec:
|
|||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: backend-ingress
|
name: lifesub
|
||||||
|
namespace: ${namespace}
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: nginx
|
kubernetes.io/ingress.class: nginx
|
||||||
nginx.ingress.kubernetes.io/rewrite-target: /$2
|
nginx.ingress.kubernetes.io/rewrite-target: /$2
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
# Team Settings
|
# Team Settings
|
||||||
teamid=unicorn
|
teamid=unicorn
|
||||||
root_project=lifesub-web
|
root_project=lifesub-web
|
||||||
|
namespace=lifesub
|
||||||
|
|
||||||
# Container Registry Settings
|
# Container Registry Settings
|
||||||
registry=unicorncr.azurecr.io
|
registry=unicorncr.azurecr.io
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user