【发布时间】:2021-06-16 06:12:53
【问题描述】:
我是 Azure 的新手,我遇到了一个又一个的问题,但我仍然认为我已经走了很远。我使用此命令创建了凭据:
az ad sp create-for-rbac --name "myApp" --role contributor --scopes /subscriptions/{sub-id}/resourceGroups/{SomeRes} --sdk-auth
复制粘贴在github上的秘密处。
然后前面的任务运行良好,但是在这个任务上失败了:Run Azure webapp deploy action using azure credentials
# Run dotnet build and publish
- name: dotnet build and publish
working-directory: ./myDemoApp
run: |
dotnet restore
dotnet build --configuration Release
dotnet publish -c Release -o '/someDemoApp'
# Deploy to Azure Web apps
- name: 'Run Azure webapp deploy action using azure credentials'
uses: azure/webapps-deploy@v2
with:
app-name: SomeDemoApp
package: './myDemoApp/someDemoApp'
- name: logout
run: |
az logout
它返回这个错误:
Error: Deployment Failed with Error: Error: Resource SomeDemoApp doesn't exist.
如何配置它以便我可以部署它?
更新:
通过创建应用修复了第一个错误,但现在找不到包并返回此错误:
Error: Deployment Failed with Error: Error: No package found with specified pattern: ./myDemoApp/someDemoApp
我在哪里可以找到这个包的位置,或者与我的哪个配置相关?
【问题讨论】:
标签: azure azure-web-app-service github-actions