diff --git a/Jenkinsfile b/Jenkinsfile index a8d3d38..0ba9102 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,5 +8,13 @@ pipeline { } } + stage('Publish') { + steps { + sh '"docker stack rm worldcraftdiscordbot"' + sh '"docker stack deploy worldcraftdiscordbot"' + sh '"docker service update worldcraftdiscordbot --image worldcraftdiscordbot:v${env.BUILD_ID}"' + } + } + } } \ No newline at end of file