mirror of
https://github.com/won-ktds/smarketing-backend.git
synced 2025-12-06 07:06:24 +00:00
refactor: key 변수 수정
This commit is contained in:
parent
e60a50aaac
commit
b5edce9ed0
12
smarketing-ai/deployment/Jenkinsfile
vendored
12
smarketing-ai/deployment/Jenkinsfile
vendored
@ -27,7 +27,7 @@ podTemplate(
|
|||||||
|
|
||||||
stage("Get Source") {
|
stage("Get Source") {
|
||||||
checkout scm
|
checkout scm
|
||||||
props = readProperties file: "smarketing-ai/deployment/deploy_env_vars"
|
props = readProperties file: "deployment/deploy_env_vars"
|
||||||
namespace = "${props.namespace}"
|
namespace = "${props.namespace}"
|
||||||
|
|
||||||
echo "Registry: ${props.registry}"
|
echo "Registry: ${props.registry}"
|
||||||
@ -86,7 +86,7 @@ podTemplate(
|
|||||||
|
|
||||||
# Docker 이미지 빌드
|
# Docker 이미지 빌드
|
||||||
podman build \
|
podman build \
|
||||||
-f smarketing-ai/deployment/Dockerfile \
|
-f deployment/container/Dockerfile \
|
||||||
-t ${props.registry}/${props.image_org}/smarketing-ai:${imageTag} .
|
-t ${props.registry}/${props.image_org}/smarketing-ai:${imageTag} .
|
||||||
|
|
||||||
# 이미지 푸시
|
# 이미지 푸시
|
||||||
@ -132,19 +132,19 @@ podTemplate(
|
|||||||
export azure_storage_account_key=\$AZURE_STORAGE_ACCOUNT_KEY
|
export azure_storage_account_key=\$AZURE_STORAGE_ACCOUNT_KEY
|
||||||
|
|
||||||
# manifest 생성
|
# manifest 생성
|
||||||
envsubst < smarketing-ai/deployment/${manifest}.template > smarketing-ai/deployment/${manifest}
|
envsubst < deployment/${manifest}.template > deployment/${manifest}
|
||||||
echo "Generated manifest file:"
|
echo "Generated manifest file:"
|
||||||
cat smarketing-ai/deployment/${manifest}
|
cat deployment/${manifest}
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
container('azure-cli') {
|
container('azure-cli') {
|
||||||
sh """
|
sh """
|
||||||
kubectl apply -f smarketing-ai/deployment/${manifest}
|
kubectl apply -f deployment/${manifest}
|
||||||
|
|
||||||
echo "Waiting for smarketing deployment to be ready..."
|
echo "Waiting for smarketing deployment to be ready..."
|
||||||
kubectl -n ${namespace} wait --for=condition=available smarketing-ai/deployment/smarketing --timeout=300s
|
kubectl -n ${namespace} wait --for=condition=available deployment/smarketing --timeout=300s
|
||||||
|
|
||||||
echo "=========================================="
|
echo "=========================================="
|
||||||
echo "Getting LoadBalancer External IP..."
|
echo "Getting LoadBalancer External IP..."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user