use version tags
This commit is contained in:
parent
960bd0eedf
commit
4aa86fd389
2 changed files with 6 additions and 2 deletions
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
|
@ -13,7 +13,11 @@ 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('latest')
|
app.push('v0.1.0')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage('Rollout') {
|
||||||
|
sh('kubectl rollout restart deployment bot')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -18,7 +18,7 @@ spec:
|
||||||
service: bot
|
service: bot
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: mykola2312/mk-dl-bot:latest
|
- image: mykola2312/mk-dl-bot:v0.1.0
|
||||||
name: bot
|
name: bot
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue