use version tags
This commit is contained in:
parent
326eb60f19
commit
42d276bd20
2 changed files with 6 additions and 2 deletions
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
|
@ -13,7 +13,11 @@ node {
|
|||
|
||||
stage('Push') {
|
||||
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
|
||||
spec:
|
||||
containers:
|
||||
- image: mykola2312/mk-dl-bot:latest
|
||||
- image: mykola2312/mk-dl-bot:v0.1.0
|
||||
name: bot
|
||||
envFrom:
|
||||
- secretRef:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue