diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..6465326 --- /dev/null +++ b/Jenkinsfile @@ -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' + } + } + } +}