diff --git a/configuration/kubernetes/deploy-config.yaml b/configuration/kubernetes/deploy-config.yaml index 8bf010a..b1d60bb 100644 --- a/configuration/kubernetes/deploy-config.yaml +++ b/configuration/kubernetes/deploy-config.yaml @@ -23,7 +23,7 @@ spec: spec: containers: - name: db-gateway - image: REPOSITORY_IMAGE + image: REPOSITORY/IMAGE env: - name: KUBERNETES_NAMESPACE valueFrom: diff --git a/configuration/pipelines/build.groovy b/configuration/pipelines/build.groovy index fbeb389..5acce7f 100644 --- a/configuration/pipelines/build.groovy +++ b/configuration/pipelines/build.groovy @@ -83,7 +83,9 @@ try { stage('Build Image') { mvn 'clean package -DskipTests' - sh "sed -i 's/REPOSITORY_IMAGE/${env.DOCKER_REPOSITORY}/${env.APPLICATION_NAME}:${env.APPLICATION_VERSION}/g' configuration/kubernetes/deploy-config.yaml" + sh "sed -i 's/REPOSITORY/${env.DOCKER_REPOSITORY}/g' configuration/kubernetes/deploy-config.yaml" + sh "sed -i 's/IMAGE/${env.APPLICATION_NAME}:${env.APPLICATION_VERSION}/g' configuration/kubernetes/deploy-config.yaml" + sh "cat configuration/kubernetes/deploy-config.yaml" // Update build config for kubernetes