从 GitLab 的 Azure 网站部署

Deployment from Azure web site from GitLab

我按照 this article 将我的 GitLab master 分支自动部署到 Azure。在 Azure 门户的 "Deployment" 部分下,我选择了 "Deployment options" -> "Choose Source",其中显示了这 3 个选项。

  1. 本地Git存储库
  2. Git中心
  3. 比特桶

文章中没有 "External Repository" 选项,所以死路一条。我想也许我可以通过 Azure CLI 来完成这个。我在帮助屏幕上摸索着找到了这个命令:

az webapp deployment source config --slot stage -u [MY_GITLAB_PROJECT_URL] --branch master --resource-group [MY_GROUP] --name [MY_PROJET_NAME]

命令错误:"The parameter [MY_GITLAB_PROJECT_URL] has an invalid value"。我尝试了 SSH url、HTTPS url(带有 .git 后缀)和 URL 到 repo。没有骰子。

有什么建议吗?我在免费试用计划中,如果有不同的话。

您没有看到 "External Repository" 的原因是您有一个基于 linux 的应用程序,而该功能不适用于基于 linux 的应用程序。

但是,如果您的应用是基于 windows 的应用,您会看到外部存储库作为一个选项:

您可以在此提出功能请求: https://feedback.azure.com/forums/169385-web-apps-formerly-websites