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. ;)
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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 :
- GitHub repository -> Settings
- Webhooks & Services
- AWS Opsworks
- 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.
回答2:
Internets saved me once again: http://blog.codeship.io/2013/09/18/how-to-deploy-to-amazon-opsworks-using-codeship.html
回答3:
Small addition to Imran answer: now on github it called Integration & Services.