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:
parent
89d7952b16
commit
4f58c45a2e
2 changed files with 3 additions and 3 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
|
@ -13,12 +13,12 @@ node {
|
|||
|
||||
stage('Push') {
|
||||
docker.withRegistry('https://registry.hub.docker.com', 'a2aa5264-dce1-4054-8828-8db95e3c6c3c') {
|
||||
app.push('v0.2.0')
|
||||
app.push('v0.1.1')
|
||||
}
|
||||
}
|
||||
|
||||
stage('Rollout') {
|
||||
sh('kubectl apply -f k8s/')
|
||||
sh('kubectl rollout restart deployment bot')
|
||||
sh('kubectl rollout restart deployment bot -n mk-dl-bot')
|
||||
}
|
||||
}
|
||||
|
|
@ -19,7 +19,7 @@ spec:
|
|||
service: bot
|
||||
spec:
|
||||
containers:
|
||||
- image: mykola2312/mk-dl-bot:v0.2.0
|
||||
- image: mykola2312/mk-dl-bot:v0.1.1
|
||||
name: bot
|
||||
envFrom:
|
||||
- secretRef:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue