refactor: deployment
This commit is contained in:
parent
05bebaee75
commit
93ddac2c7d
14
deployment/Jenkinsfile
vendored
14
deployment/Jenkinsfile
vendored
@ -65,8 +65,8 @@ spec:
|
|||||||
}
|
}
|
||||||
|
|
||||||
stage('Build & Push Image') {
|
stage('Build & Push Image') {
|
||||||
steps {
|
container('podman') {
|
||||||
container('podman') {
|
steps {
|
||||||
script {
|
script {
|
||||||
sh """
|
sh """
|
||||||
podman build \\
|
podman build \\
|
||||||
@ -89,8 +89,8 @@ spec:
|
|||||||
}
|
}
|
||||||
|
|
||||||
stage('Generate & Apply Manifest') {
|
stage('Generate & Apply Manifest') {
|
||||||
steps {
|
container('envsubst') {
|
||||||
container('envsubst') {
|
steps {
|
||||||
sh """
|
sh """
|
||||||
export namespace=${env.NAMESPACE}
|
export namespace=${env.NAMESPACE}
|
||||||
export smarketing_frontend_image_path=${env.imagePath}
|
export smarketing_frontend_image_path=${env.imagePath}
|
||||||
@ -107,8 +107,10 @@ spec:
|
|||||||
cat deployment/${manifest}
|
cat deployment/${manifest}
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
container('azure-cli') {
|
container('azure-cli') {
|
||||||
|
steps {
|
||||||
sh """
|
sh """
|
||||||
kubectl apply -f deployment/${manifest}
|
kubectl apply -f deployment/${manifest}
|
||||||
|
|
||||||
@ -132,7 +134,7 @@ spec:
|
|||||||
echo "✅ smarketing-frontend 배포가 성공적으로 완료되었습니다!"
|
echo "✅ smarketing-frontend 배포가 성공적으로 완료되었습니다!"
|
||||||
}
|
}
|
||||||
failure {
|
failure {
|
||||||
echo "❌ smarketing-frontend 배포 중 오류가 발생했습니다.."
|
echo "❌ smarketing-frontend 배포 중 오류가 발생했습니다."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user