Skip to content

Commit

Permalink
Update azure-pipelines.yml for Azure Pipelines (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
shibayan authored Dec 24, 2019
1 parent 7b7c512 commit 150f1be
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ stages:
jobs:
- job: Build
pool:
vmImage: 'windows-2019'
vmImage: 'windows-latest'
steps:
- task: UseDotNet@2
inputs:
Expand All @@ -31,18 +31,18 @@ stages:
command: 'publish'
publishWebProjects: false
arguments: '-c $(buildConfiguration) -o $(Build.SourcesDirectory)/latest'
displayName: 'Build for deployment'

- publish: latest
artifact: function
displayName: 'Upload artifacts'

- stage: Deploy
dependsOn:
- Build
condition: and(succeeded(), eq(variables['isGitHubTag'], true))
jobs:
- job: Deploy
pool:
vmImage: 'windows-2019'
vmImage: 'windows-latest'
steps:
- checkout: none
- download: current
Expand All @@ -53,4 +53,5 @@ stages:
azureSubscription: 'Visual Studio Enterprise'
Destination: 'AzureBlob'
storage: 'shibayan'
ContainerName: 'azure-keyvault-letsencrypt'
ContainerName: 'azure-keyvault-letsencrypt'
displayName: 'Deploy to Storage Blob'

0 comments on commit 150f1be

Please sign in to comment.