Added publish script

This commit is contained in:
victormylle
2020-11-14 12:06:40 +01:00
parent 73eacc0abb
commit 79bda0f1fd

8
Jenkinsfile vendored
View File

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