Prepared initial pipeline to deploy to cluster

This commit is contained in:
Marcin-Ramotowski 2025-05-08 20:28:21 +00:00
parent 36337d5c53
commit 1dda7cfb2b

18
Jenkinsfile vendored Normal file
View 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'
}
}
}
}