Extract Zip Artifact as part of Azure App Service Deploy?

梦想与她 提交于 2019-12-11 04:48:10

问题


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:

  • 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

This all works fine...

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.

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


回答1:


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.




回答2:


I had the same problem. However the "Publish using Web Deploy" option has been checked all the time. I also tried the version 2 and 3 of the task.

My solution was to add unzip .zip and rm



来源:https://stackoverflow.com/questions/43764661/extract-zip-artifact-as-part-of-azure-app-service-deploy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!