【发布时间】:2021-11-17 17:22:10
【问题描述】:
我对将 azure static webapp 部署到 azure 完全陌生。我有一个非常简单的 Angular 应用和 azure devops 帐户。
我想设置 azure devops 管道来构建 Angular 应用文件并将其上传到 Blob 容器。 注意:我没有 azure 订阅,只有存储帐户连接字符串详细信息。
到目前为止,我的 yml 文件是。不知道如何继续。
trigger:
- main
pool:
vmImage: ubuntu-latest
steps:
- task: NodeTool@0
inputs:
versionSpec: '12.x'
displayName: 'Install Node.js'
- script: |
npm install -g @angular/cli
npm install
ng build --prod
displayName: 'npm install and build'
任何人都可以帮助我如何做到这一点。
我看到一些可以上传的脚本,但不确定如何添加到管道
az storage blob upload --account-name mystorageaccount --account-key 0000-0000 --container-name mycontainer --file /path/to/file --name myblob
【问题讨论】:
-
你有没有碰巧检查过这个medium.com/bb-tutorials-and-thoughts/…
标签: azure-blob-storage angular12