简体   繁体   English

使用只读访问权限从Github部署到Azure

[英]Deploy to Azure from Github with Readonly Access

I would like to setup automatic deployment from a private Github repo to an Azure website. 我想设置从私有Github存储库到Azure网站的自动部署。 After reading through the official tutorial it looks like the only built-in way is to give azure full read/write access to every repo on your github account via the API. 阅读完官方教程后 ,似乎唯一的内置方法是通过API为github帐户上的每个存储库提供azure完全读写访问权限。

Is there a simple way to setup azure deployment and only give read-only access to a single repo using Githubs readonly deployment keys? 是否有一种简单的方法来设置Azure部署,并使用Gi​​thubs只读部署密钥仅授予对单个存储库的只读访问权限?

When you setup deployment from GitHub, one part of the process is to pull the source (from doc you refer to): 当您从GitHub设置部署时,过程的一部分是提取源代码(从您引用的文档中获取):

Azure creates an association with the selected repository, and pulls in the files from the specified branch. Azure创建与所选存储库的关联,并从指定分支中提取文件。

But another, and most important for the CI/CD process is creation of a new WebHook to your repository. 但是,对于CI / CD流程而言,另一个也是最重要的是为存储库创建一个新的WebHook Setting up a Web Hook requires write permissions to the repository, thus the requirement for Read/Write. 设置Web Hook要求对存储库具有写权限,因此需要进行读/写操作。

You can also read on the CD process in Project KUDU Wiki (note: Azure Web Apps runs on the Project KUDU) 您还可以在Project KUDU Wiki上的CD进程上阅读(注意:Azure Web Apps在Project KUDU上运行)

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

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