Created
February 8, 2021 09:26
-
-
Save Beelzenef/7aaa20c9a56abad4433511aa54c6a175 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
pool: | |
name: Azure Pipelines | |
steps: | |
- task: NuGetToolInstaller@1 | |
displayName: 'Use NuGet 5.8.0' | |
inputs: | |
versionSpec: 5.8.0 | |
- task: NuGetCommand@2 | |
displayName: 'NuGet restore' | |
- task: DotNetCoreCLI@2 | |
displayName: 'dotnet build' | |
inputs: | |
projects: '**/*.csproj' | |
arguments: '--output publish_output --configuration Release' | |
- task: ArchiveFiles@2 | |
displayName: 'Archive Function' | |
inputs: | |
rootFolderOrFile: '$(System.DefaultWorkingDirectory)/publish_output' | |
includeRootFolder: false | |
archiveFile: '$(Build.ArtifactStagingDirectory)/app.zip' | |
- task: PublishBuildArtifacts@1 | |
displayName: 'Publish Artifact: app' | |
inputs: | |
PathtoPublish: '$(Build.ArtifactStagingDirectory)/app.zip' | |
- task: PublishBuildArtifacts@1 | |
displayName: 'Publish Artifact: Terraform' | |
inputs: | |
PathtoPublish: '$(PathToTerraformTemplates)' | |
ArtifactName: Terraform |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment