This commit is contained in:
hiondal 2025-03-03 14:17:10 +09:00
parent 2e443a03bd
commit 2220ab7d79
5 changed files with 7 additions and 3 deletions

View File

@ -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") {

View File

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

View File

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

View File

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

View File

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