Splitted main stage to 2 separate stages
This commit is contained in:
parent
55718d1d1e
commit
e1c0011264
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -6,12 +6,18 @@ pipeline {
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
stage('Apply to Cluster') {
|
||||
stage('Get credentials to Cluster') {
|
||||
steps {
|
||||
sh '''
|
||||
az login --identity
|
||||
az aks get-credentials --resource-group tst-aks-rg --name edu
|
||||
kubelogin convert-kubeconfig -l azurecli
|
||||
'''
|
||||
}
|
||||
}
|
||||
stage('Apply to Cluster') {
|
||||
steps {
|
||||
sh '''
|
||||
kubectl apply -f namespace.yaml
|
||||
kubectl apply -f secret-store.yaml
|
||||
kubectl apply -f deploy.yaml
|
||||
|
Loading…
x
Reference in New Issue
Block a user