diff --git a/Jenkinsfile b/Jenkinsfile index 73bb5ec..0f0185e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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') + } } \ No newline at end of file diff --git a/k8s/1_deployment.yml b/k8s/1_deployment.yml index d41cef0..4bb8868 100644 --- a/k8s/1_deployment.yml +++ b/k8s/1_deployment.yml @@ -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: