从Bitbucket直接部署到AWS弹性Beanstalk。

时间:2022-08-25 09:27:31

How do I deploy my latest bits (in this case a nodejs app) from Bitbucket to the AWS Elastic Beanstalk.

如何将我的最新比特(在本例中为nodejs应用程序)从Bitbucket部署到AWS弹性Beanstalk。

I want to avoid doing a git aws.push from my local system since that pushes the entire repo which can be painfully slow in low bandwidth scenarios.

我不想做傻事。来自我的本地系统的推送,因为这会推动整个repo,在低带宽的情况下会非常缓慢。

What I would like is to be able to commit my changes locally then push to Bitbucket. Then trigger a deployment from Bitbucket to the Elastic Beanstalk deployment.

我想要的是能够在本地提交更改,然后推到Bitbucket。然后触发从Bitbucket部署到弹性Beanstalk部署。

any help would be appreciated. I'd love to avoid having to sign up for a third party service just to do this but if that's necessary, I'd welcome recommendations

如有任何帮助,我们将不胜感激。我很想避免仅仅为了这个而去注册第三方服务,但是如果有必要的话,我欢迎大家的推荐

1 个解决方案

#1


3  

Only the first git aws.push is full. All the others are incremental.

只有第一个git才会运行。推满了。其他的都是递增的。

However, it poses an interesting question. Here are a few ideas:

然而,它提出了一个有趣的问题。以下是一些建议:

  • Host your own CI/CD service, like Jenkins or Drone (FWIW, I wrote the Jenkins AWSEB Deployment Plugin

    托管您自己的CI/CD服务,如Jenkins或Drone (FWIW,我编写了Jenkins AWSEB部署插件

  • Use a cloud service. I recommend Codeship (free), but Drone.io and Travis (free for Public Projects) are also good picks

    使用云服务。我推荐Codeship(免费),但是无人机。io和Travis(免费的公共项目)也是不错的选择

  • Write a Bitbucket Hook to do it itself, and host on Iron.io (like I incidentally made with mirrormirror-go

    写一个位桶钩来做它自己,并且主机在铁。io(就像我用镜面反射器做的一样

#1


3  

Only the first git aws.push is full. All the others are incremental.

只有第一个git才会运行。推满了。其他的都是递增的。

However, it poses an interesting question. Here are a few ideas:

然而,它提出了一个有趣的问题。以下是一些建议:

  • Host your own CI/CD service, like Jenkins or Drone (FWIW, I wrote the Jenkins AWSEB Deployment Plugin

    托管您自己的CI/CD服务,如Jenkins或Drone (FWIW,我编写了Jenkins AWSEB部署插件

  • Use a cloud service. I recommend Codeship (free), but Drone.io and Travis (free for Public Projects) are also good picks

    使用云服务。我推荐Codeship(免费),但是无人机。io和Travis(免费的公共项目)也是不错的选择

  • Write a Bitbucket Hook to do it itself, and host on Iron.io (like I incidentally made with mirrormirror-go

    写一个位桶钩来做它自己,并且主机在铁。io(就像我用镜面反射器做的一样