Prepared initial pipeline to deploy to cluster
This commit is contained in:
parent
36337d5c53
commit
1dda7cfb2b
18
Jenkinsfile
vendored
Normal file
18
Jenkinsfile
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
stage('Apply to Cluster') {
|
||||
steps {
|
||||
sh 'az login --identity'
|
||||
sh 'az aks get-credentials --resource-group tst-aks-rg --name edu'
|
||||
sh 'kubectl apply -f namespace.yaml deploy.yaml ingress.yaml'
|
||||
sh 'kubectl rollout status deployment/user-microservice -n user-microservice'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user