Last active
December 25, 2019 14:17
-
-
Save mithunshanbhag/7a4de67243f5639e83104fc045bee547 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# build the app | |
- script: dotnet publish -c ${{parameters.buildConfiguration}} -o ./publish | |
displayName: dotnet publish | |
workingDirectory: $(Build.SourcesDirectory)/app-name-redacted | |
# stop app service | |
- task: AzureAppServiceManage@0 | |
displayName: stop app service | |
inputs: | |
azureSubscription: ${{parameters.azureSubscription}} | |
action: 'Stop Azure App Service' | |
webAppName: ${{parameters.webAppName}} | |
resourceGroupName: ${{parameters.resourceGroupName}} | |
# deploy to app service | |
- task: AzureRMWebAppDeployment@4 | |
displayName: deploy to app service | |
inputs: | |
azureSubscription: ${{parameters.azureSubscription}} | |
appType: webAppLinux | |
webAppName: ${{parameters.webAppName}} | |
resourceGroupName: ${{parameters.resourceGroupName}} | |
package: $(Build.SourcesDirectory)/app-name-redacted/publish | |
removeAdditionalFilesFlag: true | |
excludeFilesFromAppDataFlag: true | |
# start app service | |
- task: AzureAppServiceManage@0 | |
displayName: start app service | |
inputs: | |
azureSubscription: ${{parameters.azureSubscription}} | |
action: 'Start Azure App Service' | |
webAppName: ${{parameters.webAppName}} | |
resourceGroupName: ${{parameters.resourceGroupName}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment