Azure 容器注册表和 Github 操作 - 被拒绝:请求的资源访问被拒绝

问题描述 投票:0回答:1

我有一个现有的

app service
在我的 azure 订阅中运行,它使用来自 https://github.com/microsoft/sample-app-aoai-chatGPT 的代码,我在 https://github 中分叉了代码.com/manuchadha1979/sample-app-aoai-chatGPT 并更改了 html 文件。当我尝试运行工作流程时,运行
denied: requested access to the resource is denied
工作流程时出现
github
错误。我想我必须在
Azure
中设置一些访问权限,但我不知道什么以及在哪里

我从 Azure 容器注册表的访问密钥部分复制了工作流所需的用户名、密码和服务器登录名。

github-actions azure-container-registry
1个回答
0
投票

您的工作流程尝试将映像推送到错误的容器注册表

fruoccopublic
,而不是
craistudiodemorespurce383718707273

您必须将您的图像标记为
craistudiodemorespurce383718707273.azurecr.io/sample-app-aoai-chatgpt:$version

检查您的 GitHub 工作流程文件并替换注册表。

© www.soinside.com 2019 - 2024. All rights reserved.