use version tags

This commit is contained in:
mykola2312 2024-03-15 21:11:37 +02:00
parent 326eb60f19
commit 42d276bd20
2 changed files with 6 additions and 2 deletions

6
Jenkinsfile vendored
View file

@ -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')
}
}

View file

@ -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: