gpt4 book ai didi

使用 VSTS 持续部署 Azure 应用服务

转载 作者:行者123 更新时间:2023-12-02 07:29:03 24 4
gpt4 key购买 nike

我已从 Visual Studio Team Services GIT 存储库中的分支设置了 Azure 持续部署。一切工作正常,但我想在实际部署之前运行一些 gulp 任务。有什么办法可以做到这一点吗?

最佳答案

Azure 通过使用多个代码源提供开箱即用的持续部署。您将需要更多的持续集成方面,运行任务和流程来构建代码。

进行持续集成的方法和工具有很多种,但在 Azure 中执行此操作最兼容的方法和工具是在 Visual Studio Team Services 的构建和发布部分中。

在您的 Azure 订阅中,您可以按照后续步骤进行设置(您似乎已经在 Visual Studio 团队服务中设置了代码,然后您可以跳至步骤 3):

  1. 创建 VSTS 项目

enter image description here

  • 将代码放入 VSTS 内的 Git 存储库
  • enter image description here

  • 创建构建定义
  • enter image description here

  • 从目录添加任务
  • enter image description here

  • 添加和配置您的 Gulp 任务
  • enter image description here

  • 将构建部署到 Azure
  • enter image description here

    关于使用 VSTS 持续部署 Azure 应用服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42562070/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com