Fix Jenkins pipeline syntax error
This commit is contained in:
parent
6d628427a6
commit
3549254b8b
8
deployment/Jenkinsfile
vendored
8
deployment/Jenkinsfile
vendored
@ -44,7 +44,7 @@ spec:
|
||||
steps {
|
||||
script {
|
||||
// deploy_env_vars 파일에서 환경변수 로드
|
||||
if (fileExists('deployment/deploy_env_vars')) {
|
||||
if (fileExists('deploy_env_vars')) {
|
||||
def envVars = readFile('deploy_env_vars').trim()
|
||||
envVars.split('\n').each { line ->
|
||||
if (line.contains('=')) {
|
||||
@ -65,8 +65,8 @@ spec:
|
||||
}
|
||||
|
||||
stage('Build & Push Image') {
|
||||
container('podman') {
|
||||
steps {
|
||||
container('podman') {
|
||||
script {
|
||||
sh """
|
||||
podman build \\
|
||||
@ -89,8 +89,8 @@ spec:
|
||||
}
|
||||
|
||||
stage('Generate & Apply Manifest') {
|
||||
container('envsubst') {
|
||||
steps {
|
||||
container('envsubst') {
|
||||
sh """
|
||||
export namespace=${env.NAMESPACE}
|
||||
export smarketing_frontend_image_path=${env.imagePath}
|
||||
@ -107,10 +107,8 @@ spec:
|
||||
cat deployment/${manifest}
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
container('azure-cli') {
|
||||
steps {
|
||||
sh """
|
||||
kubectl apply -f deployment/${manifest}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user