Explorar el Código

Sustituyo TAG en instala todo

creylopez hace 10 meses
padre
commit
93d024fbab
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      Jenkinsfile

+ 1 - 0
Jenkinsfile

@@ -108,6 +108,7 @@ pipeline {
             sh 'kubectl create -f K8S/db-deployment.yaml'
             sh 'kubectl create -f K8S/db-service.yaml'
 
+            sh 'sed -i "s/<TAG>/${BUILD_NUMBER}/" K8S/jugaralpadel-jenkins-deployment.yaml'
             sh 'kubectl apply -f K8S/jugaralpadel-jenkins-deployment.yaml'
             sh 'kubectl create -f K8S/jugaralpadel-ingress.yaml'
           }