提取Zip Artifact作为Azure App Service Deploy的一部分吗? [英] Extract Zip Artifact as part of Azure App Service Deploy?

查看:80
本文介绍了提取Zip Artifact作为Azure App Service Deploy的一部分吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在建立vsts上asp.net核心Web应用程序的构建和发布.

I'm in the process of setting up a build and release of an asp.net core web app on vsts.

我已经完成了以下任务:

I've the build working with the following tasks:

  • 构建解决方案
  • dotnet发布
  • 创建类型为zip的工件到$(Build.ArtifactStagingDirectory)/MyApp _ $(Build.BuildId).zip
  • 发布 -工件路径$(Build.ArtifactStagingDirectory)/MyApp _ $(Build.BuildId).zip -工件名称MyApp_Package
  • Build solution
  • dotnet publish
  • create artifact of type zip to $(Build.ArtifactStagingDirectory)/MyApp_$(Build.BuildId).zip
  • publish -- artifact path $(Build.ArtifactStagingDirectory)/MyApp_$(Build.BuildId).zip -- artifact name MyApp_Package

一切正常...

此版本是一项"Azure App Service部署"任务. 程序包或文件夹"为$(System.DefaultWorkingDirectory)/MyBuild/MyApp_Package 这是有效的"排序,因为它正在将zip文件部署到Azure Web应用程序,但不提取文件.

The release is an "Azure App Service Deploy" task. The "package or folder" is $(System.DefaultWorkingDirectory)/MyBuild/MyApp_Package It is "working" sortof in that it is deploying the zip file to the Azure web app but does not extract the files.

我如何获取它以将其zip解压缩到azure网站上?

How do I get it to extract the zip on the azure web site?

推荐答案

由于要部署软件包(zip),因此需要选中使用Web Deploy发布选项,并为包或文件夹.

Since you are deploying a package (zip), you need to check Publish using Web Deploy option and specify the zip file for Package or folder.

这篇关于提取Zip Artifact作为Azure App Service Deploy的一部分吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆