Added publish script
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -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}"'
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user