fix jenkins pipeline bug so kubectl will restart deployment in mk-dl-bot namespace. I had to sage down to v0.1.1 for that fix

This commit is contained in:
mykola2312 2024-03-29 14:08:28 +02:00
parent 89d7952b16
commit 4f58c45a2e
2 changed files with 3 additions and 3 deletions

4
Jenkinsfile vendored
View file

@ -13,12 +13,12 @@ node {
stage('Push') { stage('Push') {
docker.withRegistry('https://registry.hub.docker.com', 'a2aa5264-dce1-4054-8828-8db95e3c6c3c') { docker.withRegistry('https://registry.hub.docker.com', 'a2aa5264-dce1-4054-8828-8db95e3c6c3c') {
app.push('v0.2.0') app.push('v0.1.1')
} }
} }
stage('Rollout') { stage('Rollout') {
sh('kubectl apply -f k8s/') sh('kubectl apply -f k8s/')
sh('kubectl rollout restart deployment bot') sh('kubectl rollout restart deployment bot -n mk-dl-bot')
} }
} }

View file

@ -19,7 +19,7 @@ spec:
service: bot service: bot
spec: spec:
containers: containers:
- image: mykola2312/mk-dl-bot:v0.2.0 - image: mykola2312/mk-dl-bot:v0.1.1
name: bot name: bot
envFrom: envFrom:
- secretRef: - secretRef: