Deploy botka from its own public repo

This commit is contained in:
Greg Karékinian
2016-11-22 16:10:16 +01:00
parent 6b4cb17064
commit 7378908d93
2 changed files with 14 additions and 21 deletions

View File

@@ -32,11 +32,17 @@ application "botka_xmpp" do
"hubot-remotestorage-logger"
].to_json
end
file "#{new_resource.release_path}/external-scripts.json" do
mode "0640"
owner "hubot"
group "hubot"
content [].to_json
end
end
repository "git@gitlab.com:5apps/schlupp.git"
repository "https://github.com/67P/botka.git"
revision "master"
deploy_key botka_xmpp_data_bag_item['deploy_key']
nodejs do
entry_point "/srv/botka_xmpp/current/bin/hubot -a xmpp --name botka"
@@ -54,7 +60,6 @@ application "botka_xmpp" do
"RS_LOGGER_USER" => "5apps@5apps.com",
"RS_LOGGER_TOKEN" => botka_xmpp_data_bag_item['rs_logger_token'],
"RS_LOGGER_SERVER_NAME" => "5apps",
"RS_OPS_TOKEN" => botka_xmpp_data_bag_item['rs_ops_token'],
"WEBHOOK_TOKEN" => botka_xmpp_data_bag_item['webhook_token']
end
end