简体   繁体   English

在现有的 aws 桩线中用 Git 替换 CodeCommit

[英]Replacing CodeCommit with Git in existing aws pileline

I have an aws pipeline with code commit as it's repo.我有一个带有代码提交的 aws 管道,因为它是 repo。

What I am trying to achieve is to change the repo to my existing git repo in the pipeline.我想要实现的是将 repo 更改为管道中现有的 git repo。 Is there a way to achieve it?有没有办法实现它? The documents I am referring to shows how to mirror the contents of git repo to local and then push it to the code commit.我所指的文档展示了如何将 git repo 的内容镜像到本地,然后将其推送到代码提交。

That doesn't fit in with the use case.这不符合用例。 I am aiming for something like git which would act as source control in the AWS pipeline and any commit in that will trigger a build.我的目标是像 git 这样的东西,它可以作为 AWS 管道中的源代码控制,并且其中的任何提交都将触发构建。

Could anyone suggest to me if we could achieve this?如果我们能做到这一点,有人可以向我建议吗? Or build a pipeline with git repo或者使用 git repo 构建管道

CodePipeline has a few options for the Source of the pipeline, for a Git style deployment there is: CodePipeline 有几个管道源选项,对于 Git 风格的部署,有:

These options will trigger the pipeline if a specific branch within your repository receives additional changes, taking an archive of the code at the latest changes.如果存储库中的特定分支收到其他更改,这些选项将触发管道,并在最新更改时获取代码存档。

In addition if you require multiple branches you take a look at using the S3 combined with some automation to push the code from any branch to S3 which would trigger the CodePipeline.此外,如果您需要多个分支,您可以考虑使用S3结合一些自动化将代码从任何分支推送到 S3,这将触发 CodePipeline。 Alternatively create multiple pipelines if you have a select few branches which must be deployed regularly.或者,如果您有几个必须定期部署的分支,则创建多个管道。

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

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