【问题标题】:Deployment from git repo that doesn't have appspec.yml using aws codedeploy使用 aws codedeploy 从没有 appspec.yml 的 git repo 进行部署
【发布时间】:2018-09-16 21:47:18
【问题描述】:

我有一个没有 appspec.yml 文件的 Git 存储库。

在这种情况下如何使用CodeDeploy

如何在AppSpec 文件中写入以从 S3 URL 下载文件?

【问题讨论】:

    标签: git amazon-web-services bitbucket devops aws-code-deploy


    【解决方案1】:

    没有 appspec 文件就无法部署。部署将失败。

    作为替代方案,您可以将 repo 捆绑为 zip 包,添加 appspec,然后注册修订并部署。

    【讨论】:

    • 感谢您的评论,但我无法修改源代码库,无论如何我可以触发自动 git 代码库创建,我可以包含 appsec 文件和其他文件集。基本上在源 git master 分支中推送更改时创建一个新的 git / bitbucket 存储库
    【解决方案2】:

    Codedeploy 部署需要 Appspec 文件。下面是一些关于将 Codedeploy 与 Github 集成的有用文档。

    https://aws.amazon.com/blogs/devops/automatically-deploy-from-github-using-aws-codedeploy/

    https://docs.aws.amazon.com/codedeploy/latest/userguide/tutorials-github.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-01-31
      • 2016-03-15
      • 1970-01-01
      • 2016-08-25
      • 2015-12-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多