我可以通过webhook将应用程序部署自动化到OpsWorks吗? [英] Can I automate an application deployment via webhook to OpsWorks?

查看:194
本文介绍了我可以通过webhook将应用程序部署自动化到OpsWorks吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从我们的Github帐户设置webhook,以便它自动启动OpsWorks中的部署任务。根据键,堆栈和应用程序ID以及要部署的分支。

请注意,通过此过程,您可以将特定应用程序部署到堆栈中的所有图层。这意味着如果你有ruby的自定义图层,他们也会将特定的应用程序部署到这些图层。然而,对于工作层非常有用,当您在不同层中使用多个导轨应用程序时,会增加部署时间。

确保您的用户拥有合适的权限以在特定堆栈上进行部署。


I want to set up an webhook from our Github account so it automatically starts an deployment task in OpsWorks. It seems to be possible according to the documentation - but can't find any examples or smart lib which is unusual for the Internets. ;)

解决方案

This process is much simpler now. All you have to do is provide the required values per the Webhook, and it will be done for you.

Steps :

  1. GitHub repository -> Settings
  2. Webhooks & Services
  3. AWS Opsworks
  4. Provide AWS::IAM keys, Stack and App ID , and branch you want to deploy.

Be aware that by this process you deploy a specific app to ALL the layers in a stack. This means that if you have custom layers with ruby, they will also deploy the specific app to those layers too. Useful for worker layer, however, increased deployment time when you have multiple rails apps in different layers.

Ensure that your user has proper permissions to deploy on the specific stack.

这篇关于我可以通过webhook将应用程序部署自动化到OpsWorks吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆