This commit is contained in:
parent
25aec35f0c
commit
9c3cdd8ccc
|
@ -69,10 +69,10 @@ pipeline {
|
|||
withKubeConfig([
|
||||
serverUrl: "$KUBERNETES_API",
|
||||
credentialsId: 'kubernetes',
|
||||
namespace: 'mycdc'
|
||||
namespace: "mycdc-${env.BRANCH_NAME}"
|
||||
]) {
|
||||
sh 'kubectl set image deployment/producer-$BRANCH_NAME main=$REGISTRY/mycdc-producer:$VERSION'
|
||||
sh 'kubectl set image deployment/consumer-$BRANCH_NAME main=$REGISTRY/mycdc-consumer:$VERSION'
|
||||
sh 'kubectl set image deployment/producer main=$REGISTRY/mycdc-producer:$VERSION'
|
||||
sh 'kubectl set image deployment/consumer main=$REGISTRY/mycdc-consumer:$VERSION'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue