Skip to content

Commit

Permalink
bot
Browse files Browse the repository at this point in the history
  • Loading branch information
sherix88 committed Jun 27, 2018
1 parent 8bb0e54 commit f4cde11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ if (fs.existsSync(directory)){
dir = child_process.exec('kubectl set image deployment/'+repo+' '+repo+'='+name+':'+version+' --namespace='+namespace+' && kubectl apply -f '+directory+'/deployment.yaml', function(err, stdout, stderr) {
if (err) { console.log(err) } else {
console.log(stdout)
/* bot.post(process.env.BOT).send({msg: "Se actualizo el repositorio "+name}).end(function(err, respuesta){
bot.post(process.env.BOT).send({msg: "Se actualizo el repositorio "+name+" de "+namespace}).end(function(err, respuesta){
if(err) { console.log(err) }
}) */
})
}
});
dir.on('exit', function (code) { console.log(code) });
Expand Down

0 comments on commit f4cde11

Please sign in to comment.