简体   繁体   English

CI-GitHub-如何在不使用Webhooks的情况下进行某种形式的持续集成

[英]CI - GitHub - How to do some form of continuous integration without webhooks

So I am developing an app that will be installed on-site. 因此,我正在开发一个将在现场安装的应用程序。 We have a server that runs an update bash script every 15 minutes for code changes and every 2 hours for stored procedure changes. 我们有一台服务器,它每15分钟运行一次更新bash脚本以进行代码更改,每2个小时运行一次存储过程更改。 We store our code (and our stored procedures) in git and use Github as our central point. 我们将代码(和存储过程)存储在git中,并以Github为中心。

We would like to be able to update our stored procedures / code when changes have been pushed to dev instead of on timed jobs. 我们希望能够在将更改推送到开发人员而不是按时完成工作时更新存储过程/代码。 I realize github has webhooks but they require github to be able to hit an API on our end and due to our IT team this isn't possible. 我意识到github上有webhooks,但是他们要求github能够在我们端使用API​​,由于我们的IT团队,这是不可能的。

Is there a way for us to be able to update our git repo's on our dev server in a more efficient manner? 有没有办法让我们能够以更有效的方式更新我们开发服务器上的git repo?

So I just started checking this out on IFTTT and I didn't see a trigger for receiving a new push, but maybe there are some others that you can piggy back off of. 因此,我刚刚开始在IFTTT上进行检查,但没有看到触发新推送的触发器,但也许还有一些其他值得您借鉴的触发器。 There is a trigger for "any new issue" so maybe you use that and create an issue when you push that is your IFTTT trigger and then for the "that" action, send yourself an email and monitor your emails for this message. 有一个“任何新问题”的触发器,因此也许您使用它并在按下时创建一个问题,这是您的IFTTT触发器,然后对于“那个”操作,向您自己发送电子邮件并监视此消息的电子邮件。 I know, hack-y, but at least one approach. 我知道,,但至少是一种方法。 Hopefully there is a better way to go here. 希望这里有更好的方法。

Another possible work around is to get a virtual server somewhere on the net that can receive the github webhook and that you can also connect via a socket and it will relay to you when it receives each github notification. 另一种可能的解决方法是在网络上的某个虚拟服务器上获取可以接收到github webhook的虚拟服务器,并且您还可以通过套接字进行连接,并且在收到每个github通知时它将中继给您。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM